Skip to content

Nested Routers #1089

Open
Open
@posva

Description

What problem does this feature solve?

Allow using nested memory routers to handle independent views. e.g. the messages on Twitter, or a chat.

A custom History implementation could even save the current page in local storage and restore it when reopening the app.

What does the proposed API look like?

provideRouter(createRouter(...))
// or
createNestedRouter(baseRouterOptions)
  • Could warn if history is based on HTML5
  • No initial navigation
  • Should provide these
  • Could appear in devtools
  • Could automatically unregister the history listener on unmounted
  • Should not change global configs
  • Should still be able to access the global router

Metadata

Assignees

No one assigned

    Labels

    discussionThis problem still needs more feedbackenhancementNew feature or requestneeds RFCThis feature needs to go through the RFC process first

    Type

    No type

    Projects

    • Status

      💬 In discussion

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions