Fuse used: Fuse 1.1.1 (build 13893).
I’m having a following error:
Uno.NullReferenceException: Object reference was null
at Fuse.Navigation.Router.SetRouteImpl(Fuse.Visual,Fuse.Navigation.Route,Fuse.Navigation.NavigationGotoMode,Fuse.Navigation.RoutingOperation,string,Fuse.Navigation.IRouterOutlet&)
at Fuse.Navigation.Router.SetRoute(Fuse.Navigation.Route,Fuse.Navigation.NavigationGotoMode,Fuse.Navigation.RoutingOperation,string,[bool])
at Fuse.Navigation.Router.Modify(Fuse.Navigation.ModifyRouteHow,Fuse.Navigation.Route,Fuse.Navigation.NavigationGotoMode,string)
at Fuse.Navigation.Router.Push(Fuse.Navigation.Route,[string])
at Fuse.Navigation.Router.Push(Fuse.Scripting.Context,Fuse.Navigation.Router,object[])
at Fuse.Scripting.ScriptMethod`1.CallClosure.Run()
at Fuse.UpdateManager.ProcessPostActionsImpl()
at Fuse.UpdateManager.ProcessPostActions()
at Fuse.UpdateManager.Update()
at Fuse.App.OnUpdate()
at Outracks.Simulator.Client.Application.OnUpdate()
at Fuse.App.OnTick(object,Uno.Platform.TimerEventArgs)
at Uno.Platform.Display.OnTick(Uno.Platform.TimerEventArgs)
at Uno.Platform.Displays.TickAll(Uno.Platform.TimerEventArgs)
while using this function for routing:
function showVisitForm() {
console.log(JSON.stringify(company.value));
router.push('new-visit-form', { company: company.value });
}
The console.log however for the company.value return the right object:
{"id":2572164,"name":"Test 241"}
This happens only on iOS device preview, the desktop Fuse Preview works as expected.