Skip to content

Routing fixes and performance improvements

Latest

Choose a tag to compare

@molefrog molefrog released this 05 Sep 10:36
· 17 commits to v3 since this release

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