wouter icon indicating copy to clipboard operation
wouter copied to clipboard

🥢 A minimalist-friendly ~2.1KB routing for React and Preact

Results 57 wouter issues
Sort by recently updated
recently updated
newest added

When I install the package with bun i think some of the install scripts or compilation might not be run. I end up having an issue: Invalid hook call. Hooks...

unclear

This code: ```tsx ``` is not triggering redirect in SSR (on client side it is working correctly). Probably because used for example here: https://github.com/molefrog/wouter/blob/efda2abc95bdb8b01d9d55b865078fbae63c4a2b/index.js#L188 `useIsomorphicLayoutEffect` hook is not being called...

unclear

In a couple of places there are references to `location`, which on a browser reads the location from `window.location`. In an SSR environment, this reads from `global.location` which isn't a...

I see #368 which may be related but I can't find anything that addresses simultaneous or near-simultaneous updates to the `search`. I'm probably going to end up implementing my own...

enhancement

The [View Transitions API](https://developer.mozilla.org/en-US/docs/Web/API/View_Transitions_API) is currently experimental but has received some adoptions already. As soon as I discovered `wouter` I immediately fall in love with its simplicity design. No offenses,...

feature

remove destructuring assignment for react wildcard import because it prevents tree-shaking and removing makes code little bit smaller

RollupError: [commonjs--resolver] node_modules/wouter/esm/react-deps.js (8:2): Identifier "useRef" has already been declared

fix: https://github.com/molefrog/wouter/issues/435 fix RollupError: [commonjs--resolver] node_modules/wouter/esm/react-deps.js (8:2): Identifier "useRef" has already been declared

There seems to be a Typescript problem with the `Route` tag: If we use the `react-error-boundary` library like this: ``` const PageA: FC = () => { return } export...