-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
feat(gatsby): Partial hydration router integration #36616
Conversation
6ad0de8
to
74ec47b
Compare
5b4aaf8
to
5b5880f
Compare
import { | ||
navigate as reachNavigate, | ||
globalHistory, | ||
} from "@gatsbyjs/reach-router" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exported from reach router index in v1 and v2
@@ -9,7 +9,7 @@ import { grabMatchParams } from "./find-path" | |||
import syncRequires from "$virtual/ssr-sync-requires" | |||
|
|||
import { RouteAnnouncerProps } from "./route-announcer-props" | |||
import { ServerLocation, Router, isRedirect } from "@reach/router" | |||
import { ServerLocation, Router, isRedirect } from "@gatsbyjs/reach-router" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This uses our alias @reach/router
> @gatsbyjs/reach-router
, clarify import now since we'll remove the alias in Gatsby 5
Description
Use router during partial hydration rendering:
location
available as props in page componentsuseLocation
hook available in childrenpathPrefix
featureDocumentation
N/A
Related Issues
[sc-55227]