forked from react-native-community/upgrade-helper
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to query param for yarn plugin setting (#16)
* updateURL improvements - Make parameters independent from one another by using the URL constructor rather than string concatenation to build up the URL. - Switch from `replaceState` to `pushState` so users can navigate between different configurations using the browser forward and back buttons - Trigger a `popstate` event after updating the URL. This allows hooks like `useSearchParams` to pick up the change * Move yarnPlugin setting to URL This allows us to send people to the right version of the diff depending on whether they have the yarn plugin installed from places like the versions:bump command. * Make settings checkboxes controlled Guarantees that checkboxes are in sync with the underlying settings
- Loading branch information
Showing
3 changed files
with
73 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters