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
Hi Marco,
first of all thank you for your work on UI Router framework.
I have two issues with new version (0.4.0) of React UI Router. Both are connected with config prop of UIRouter component:
First - there is a wrong config prop example using the old router.urlRouterProvider.otherwise (I think it should be router.urlRouter.otherwise(…)).
Second - otherwise setting through config prop works only with hashLocationPlugin for me. It doesn’t work with the recommended pushStateLocationPlugin plugin. This plugin redirects the app to the desired url, but nothing else happens. BUT it works correct when I set otherwise through manual bootstraping, i.e.:
const router = new UIRouterReact()
...
router.urlRouter.otherwise("/client/list")
...
router.start()
The text was updated successfully, but these errors were encountered:
Hi Marco,
good recommendation - using state name instead of url works prefect (and moreover cleaner solution then hardcoded url).
Thank you very much for quick response.
Hi Marco,
first of all thank you for your work on UI Router framework.
I have two issues with new version (0.4.0) of React UI Router. Both are connected with
config
prop ofUIRouter
component:config
prop example using the old router.urlRouterProvider.otherwise (I think it should be router.urlRouter.otherwise(…)).otherwise
setting throughconfig
prop works only with hashLocationPlugin for me. It doesn’t work with the recommended pushStateLocationPlugin plugin. This plugin redirects the app to the desired url, but nothing else happens. BUT it works correct when I setotherwise
through manual bootstraping, i.e.:The text was updated successfully, but these errors were encountered: