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
I've been looking for a solution to support dynamic routing.
My objective is to gather from server the main modules and initialize router with a basic routing table, ex:
{
'/mod1': function() {...},
'/mod2': function() {...},
'/mod3': function() {...},
}
When the user access a module, the module definition dynamically loads from the server and some magic happens by calling router.mount to add additional routings for that module.
So far so good, when the user interact with the module, routing works just perfectly.
notfound is called because routing '/mod1/settings' is not yet known.
Is there any trick to make this work?
One possible solution would be support async partial matching to allow module to be instantiated during dispatch.
Thanks in advance.
The text was updated successfully, but these errors were encountered:
I've been looking for a solution to support dynamic routing.
My objective is to gather from server the main modules and initialize router with a basic routing table, ex:
{
'/mod1': function() {...},
'/mod2': function() {...},
'/mod3': function() {...},
}
When the user access a module, the module definition dynamically loads from the server and some magic happens by calling router.mount to add additional routings for that module.
So far so good, when the user interact with the module, routing works just perfectly.
The problem:
Is there any trick to make this work?
One possible solution would be support async partial matching to allow module to be instantiated during dispatch.
Thanks in advance.
The text was updated successfully, but these errors were encountered: