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

TL;DR: the docs are wrong here: ```typescript {/* will match everything else */} {(params) => `404, Sorry the page ${params.rest} does not exist!`} ``` `"/:rest*"` does **_not_** in fact match...

First of all... **bravo** for making this library. I became a little frustrated with react-router last weekend and started redesigning everything in it... only to come here and find this...

I found a couple of situations where the handling around the base path isn't straightfoward: 1. When composing ``'s, like such: ```tsx ... ... ``` The inner router's base will...

Has there been a discussion about making hooks return object instead of array? The benefits behind that being: ```typescript // since typeguard doesn't work with destructuring assignment like this: const...

There seems to be a bug when using `useHashLocation` (from the README) in tandem with `Redirect`. [This forked codepen](https://codesandbox.io/s/wouter-demo-hash-based-hook-forked-j9qlm) reproduces the issue. ![image](https://user-images.githubusercontent.com/381302/147003801-c996024e-e6e1-47e8-b1d9-46dd1f6123b3.png) Even though the current location is `/about`,...

I set up hash based routing based on the example in the readme: https://github.com/molefrog/wouter#customizing-the-location-hook On click this navigates `` to `/#/route`. However that change in url is not reflected in...

Wouter export types: ```typescript export interface DefaultParams { [paramName: string]: string; } export type Params = T; ``` Let's use dynamic segment in the path, eg: ``` {(params) => {...

I was wondering if I could provide support for route switching animation, this is an interesting feature. 😄

Currently to manage location, `wouter` doesn't make it trivial for the `user (developer)` to understand: - there is no need to subscribe to `location` state via `useLocation()` There are many...

Following the [docs](https://github.com/molefrog/wouter/#are-relative-routes-and-links-supported) for nested routes, it seems to be hinted at that you can nest routes logically: ``` {/* the real url is /app/dashboard/users */} ``` However, when trying...