Skip to content

Commit f1bf6ce

Browse files
YutaUramolefrog
authored andcommitted
Update README.md for memoryLocation
1 parent b32804f commit f1bf6ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -918,10 +918,10 @@ import { memoryLocation } from "wouter/memory-location";
918918
it("renders a user page", () => {
919919
// `static` option makes it immutable
920920
// even if you call `navigate` somewhere in the app location won't change
921-
const { hook } = memoryLocation({ path: "/user/2", static: true });
921+
const { hook, searchHook } = memoryLocation({ path: "/user/2", static: true });
922922

923923
const { container } = render(
924-
<Router hook={hook}>
924+
<Router hook={hook} searchHook={searchHook}>
925925
<Route path="/user/:id">{(params) => <>User ID: {params.id}</>}</Route>
926926
</Router>
927927
);

0 commit comments

Comments
 (0)