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
When I redirect to the current url (i.e. redirect url == the current url), I will like to have interceptRender to still be called. This will helps me, for example, show a different menu based on the application state (authentication in my case) even though the url is the same (many sites such as github.com do the same).
Here is a minimalist example. Is there a way to force router to flow through interceptRender or any suggestion for an alternative pattern to achieve the same thing?
Another stateful router issue... The current router isn't designed to be stateful. I have long been of the mind that the router should route, and state should be managed elsewhere by the developer. The two shouldn't be conflated.
Then I was thinking about your case. In your case the reality is that a single URL presents more than one UI based on some state. It sounds like I'm just repeating the first paragraph but I'm not. We aren't conflating concepts (which was my aversion). State is part of the real-world-model of routes, not just the automated-world-system or even automated-world-model.
Ok. Accommodation of state needs to be built in the router. Not a task for today. Until the next release I suggest you just look at the source code (it's not complicated) find a way or a hack. It will be temporary.
Context: #100 and #103
When I redirect to the current url (i.e. redirect url == the current url), I will like to have
interceptRender
to still be called. This will helps me, for example, show a different menu based on the application state (authentication in my case) even though the url is the same (many sites such as github.com do the same).Here is a minimalist example. Is there a way to force router to flow through
interceptRender
or any suggestion for an alternative pattern to achieve the same thing?The text was updated successfully, but these errors were encountered: