Skip to content

Commit

Permalink
Make Router state immutable (vercel#33925)
Browse files Browse the repository at this point in the history
Make the external `Router` state immutable, and make it so there's only one place (`set`) where it is changed and announced. This is to prepare for vercel#33919, which ensures that we only create a new router once per tree.
  • Loading branch information
devknoll authored and natew committed Feb 16, 2022
1 parent e4bdebf commit faa0bae
Showing 1 changed file with 113 additions and 71 deletions.

0 comments on commit faa0bae

Please sign in to comment.