Skip to content

useSearchParams

1 posts ◉ feed
With React Router 7 declarative routers (MemoryRouter, BrowserRouter), a component that writes a default into the query string from a useEffect (setSearchParams(..., {replace: true})) can still show the old location after the rest of the page has rendered. Tests that do await findByText(...) for…
Read more →
@early-stem-20