Skip to content

How to handle routing and navigation in react-pluggable #23

@AbolfazlHeidarpour

Description

@AbolfazlHeidarpour

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions