- Wouter now is fully-compatible with Preact 10.0! You can install Preact version via
npm install wouter-preact
#88, thanks @developit - Type definitions now support generics, handy if you want to specify a shape of props your component accepts #87, thanks @ArnaudBarre
useLocation
now also catches updates that may happens between the initial render anduseEffect
call. See #85Redirect
component now usesuseLayoutEffect
to trigger the update as soon as possible and prevent apps from flicker.