-
Notifications
You must be signed in to change notification settings - Fork 28
Description
Hi there.
I want to update my routes and navigations when a plugin is added from pluginStore class.
For example suppose we have plugin called contacts which is React component that shows list of contacts, and also there is a button in sidebar called show contacts. When user clicks on show contacts button, contacts plugin is added to the app, along with this, routes, this means that my app's url become http://localhost:port/mainApp/contacts. How can we implement such a functionality with react-pluggable?
I have also another question about react-pluggable. suppose I have added contacts feature component from pluginStore and my routes are updated, when I refresh my page or enter a new session or close browser and open the page again, The contacts section must be available and nothing has changed, and contacts route must be available in routings. How to implement that?
Should I save routes and components in a database or react-pluggable handles such a situation? Or is there another solution?
Thanks