Skip to content

Commit

Permalink
docs(router): correcting a variable reference in external-data-loadin…
Browse files Browse the repository at this point in the history
…g.md (#2355)

"client" should have been "queryClient"
  • Loading branch information
theMostCuriousHomunculus authored Sep 17, 2024
1 parent d56da3e commit fb9205d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/framework/react/guide/external-data-loading.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export function createRouter() {
// On the client, hydrate the loader client with the data
// we dehydrated on the server
hydrate: (dehydrated) => {
hydrate(client, dehydrated.queryClientState)
hydrate(queryClient, dehydrated.queryClientState)
},
// Optionally, we can use `Wrap` to wrap our router in the loader client provider
Wrap: ({ children }) => {
Expand Down

0 comments on commit fb9205d

Please sign in to comment.