wouter
wouter copied to clipboard
🥢 A minimalist-friendly ~2.1KB routing for React and Preact
I have a hook to handle link button clicks. When a link button is clicked, a page transition is shown and animated. After the animation completes, the location is set...
Hi community, my question is pretty straight forward. How do I migrate from the old static-location to the new SSR mode way of working when I need to detect redirects....
Fallback not found route is a little bit confused with `nest`. ## Example ```jsx ``` - '/' represents app page, `` wraps nested views. - '/auth' represents unauthorized page, ``...
These Demo Sandbox links lead to a 404 Sandbox not found page: - https://github.com/molefrog/wouter/blob/v3/README.md?plain=1#L708 [Sandbox link](https://codesandbox.io/p/sandbox/wouter-v3-strict-routes-w3xdtz) - https://github.com/molefrog/wouter/blob/v3/README.md?plain=1#L729 [Sandbox link](https://codesandbox.io/p/sandbox/wouter-v3-nested-routes-l8p23s) Can the first link be replaced with [this one](https://codesandbox.io/p/sandbox/wouter-path-to-regexp-strict-rq72c )?...
version: v3.7.0 If `location.href` is a url like "data:text/html;base64,PHNjcmlwdD4Kd2luZG93Lm9ubWVzc2FnZSA9IC..."(which is common in figma plugins development) , the value of location.origin becomes "null", causing new URL(relativePath, location.origin) to fail during construction....
Calling `navigate('/foo')` will leave search params in place unless there's a replacement search string after the `/foo`. I don't know why I'd want search to persist between different pages. And...
I’d like to request the addition of a `matchRoutes` function to Wouter. This function is available in react-router, and implementing it in Wouter should require minimal code. ### Use Case...
I'm looking for a way to centrally define GTM dataLayer pushes based on router state changes, e.g whenever a navigation occurs. We use the dataLayer for tracking all sorts of...
Your bundle size is impressive! The only thing I’m missing is generatePath, similar to [React Router’s utility](https://reactrouter.com/api/utils/generatePath). It’s incredibly helpful for maintaining consistent links in large projects, especially when routes...