You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Navigation using core's Luigi.navigation().navigate() can be stopped if unsaved changes warning modal is displayed and dismissed. Because of that It's hard to perform any action after changing the route - in our case we need to call Luigi.reset() when the route is changed. It would be great if Luigi.navigation().navigate() returned boolean result depends of navigation success.
Then we could do
if (Luigi.navigation().navigate(...)){
Luigi.reset()
}
Reasons
add ability to perform action after successful route change
The text was updated successfully, but these errors were encountered:
@aartek since the whole navigation mechanism includes a lot of nested asynchronous calls, it is not possible to simply return a boolean.
The proposed solution would be that the navigate function returns a promise, so you could implement your logic from above like
Description
Navigation using core's
Luigi.navigation().navigate()
can be stopped if unsaved changes warning modal is displayed and dismissed. Because of that It's hard to perform any action after changing the route - in our case we need to callLuigi.reset()
when the route is changed. It would be great ifLuigi.navigation().navigate()
returned boolean result depends of navigation success.Then we could do
Reasons
The text was updated successfully, but these errors were encountered: