Skip to content
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

[iso] Add async onBeforeRoute() prop hook #885

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Commits on Oct 14, 2021

  1. [iso] Add async onBeforeRoute() prop hook

    This implements `<Router onBeforeRoute={async url => {}}>`. When onBeforeRoute returns a Promise for a given URL transition, that Promise is thrown from within the incoming route to simulate a Suspense-based paused transition. This means each router maintains its own onBeforeRoute "locking" state.
    developit committed Oct 14, 2021
    Configuration menu
    Copy the full SHA
    fcc01c9 View commit details
    Browse the repository at this point in the history
  2. lint fixes

    developit committed Oct 14, 2021
    Configuration menu
    Copy the full SHA
    bdc1216 View commit details
    Browse the repository at this point in the history