github molefrog/wouter v3.11.0
Routing fixes and performance improvements

3 hours ago

Wouter 3.11.0 improves routing behavior, reduces runtime overhead, and expands Link asChild props and TypeScript support. Available for both wouter and wouter-preact.

  • Support absolute useRoute("~/...") patterns inside routers with a base path. (#244)
  • Forward props such as style, aria-*, className, and refs through Link asChild, preserving the child's class name and ref when omitted on Link. Update the React and Preact declarations accordingly. (#536)
  • Notify browser-location subscribers together during navigation. (#556)
  • Allow an explicit ? to clear the query string during hash navigation. (#473)
  • Avoid URLSearchParams.size for compatibility with older supported browsers. (#567)
  • Reduce allocations in routing and memory-location subscriptions, and remove the mitt dependency.
  • Preserve memory-location updates when returning to an earlier pathname or query in React 18 components that synchronize state during rendering.

Changes since the published 3.10.0 source: 708c236...v3.11.0

Don't miss a new wouter release

NewReleases is sending notifications on new releases.