-
-
Notifications
You must be signed in to change notification settings - Fork 734
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(react-router): update
useBlocker
hook to provide current and n…
…ext location when conditionally blocking (#1790) * chore: clean up changes * feat: clean up work and address feedback * feat: add backwards compat * ci: apply automated fixes * feat: give history action to subscribers via notify * fix: provide go index to history subscribers * docs: updated docs accourding to feedback * fix: changed valid notify call * rename to `type` * remove non existing `pushstate`event * cleanup * typesafe API for shouldBlockFn * feat: added blocking state to resolver and updated examples * docs: updated useBlocker and navigation-blocking docs * test: added type tests to blocker and changed type implementation of blocker * test: added better unit tests for useBlocker hook * test: added e2e tests for blocker and legacy blocker * wip: stash files before merge * fix: unstashed e2e file after merge * fix lockfile * docs * typesafety for `<Block>` * always return resolver to not break backwards compatibility * fix: removed zod from navigation blocking example to fix build problem * chore: update lock file * finishing touches * ci: apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Manuel Schiller <[email protected]>
- Loading branch information
1 parent
4531b70
commit f420670
Showing
16 changed files
with
1,586 additions
and
240 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
Oops, something went wrong.