We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b32804f commit f1bf6ceCopy full SHA for f1bf6ce
README.md
@@ -918,10 +918,10 @@ import { memoryLocation } from "wouter/memory-location";
918
it("renders a user page", () => {
919
// `static` option makes it immutable
920
// even if you call `navigate` somewhere in the app location won't change
921
- const { hook } = memoryLocation({ path: "/user/2", static: true });
+ const { hook, searchHook } = memoryLocation({ path: "/user/2", static: true });
922
923
const { container } = render(
924
- <Router hook={hook}>
+ <Router hook={hook} searchHook={searchHook}>
925
<Route path="/user/:id">{(params) => <>User ID: {params.id}</>}</Route>
926
</Router>
927
);
0 commit comments