Skip to content

Consolidate Router component #145

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

albertogasparin
Copy link
Collaborator

We currently have 4 router components, for no particular reason. They indeed support different features as they have been poorly updated across evolution. This is an initial step toward simplification.

Notable changes:

  • remove UniversalRouter and StaticRouter. Router now does what they did, passing the same props
  • MemoryRouter is now forced local, as persisted state cause more trouble than anything in tests
  • isStatic prop is gone, we detect node to skip isBrowserOnly resources

@albertogasparin albertogasparin force-pushed the tweak/cleanup-routers branch 2 times, most recently from da5cb34 to 07c0721 Compare April 2, 2022 06:12
@albertogasparin albertogasparin force-pushed the tweak/cleanup-routers branch from 07c0721 to 6dabf84 Compare April 2, 2022 06:22
liamqma
liamqma previously approved these changes Apr 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants