Releases: asmyshlyaev177/state-in-url
Releases · asmyshlyaev177/state-in-url
v6.0.2
- Separate package for React-router v6
- use searchParams from client even if not passed
- Fix laggy updates when multiple instances of hook used
Full Changelog: v5.2.0...v6.0.2
v5.2.0 More convenient reset option
Now can reset to default state via setState, setUrl functions directly.
E.g. when passing a function setUrl((currentState, initialState) => initialState), reset still works.
v5.0.0 Remix support
useUrlStatehook for Remix.js v2.- Removed old format of params
What's Changed
- Remix support and tech debt by @asmyshlyaev177 in #59
Full Changelog: v4.3.3...v5.0.0
v4.3.0
Few bug fixes, recommended to upgrade to this version.
v4.1.3
What's Changed
Bug Fixes
- Rate limits for
history.pushStateandhistory.replaceState - Fix issue with minification,
terserdoing it incorrectly, useesbuildinstead
Full Changelog: v4.1.0...v4.1.3
v4.1.0
What's Changed
Features
- return
resetcb from useUrlState, it can reset state and URL to default 68fc693
Bug Fixes
Performance Improvements
- minor performance improvements, regex in
.replace(b89406d)
Other
- use first argument for
defaultStateand second as object with other options (b896d5f) - return urlState as normal type, not readonly (a0aa6dd)
Full Changelog: v4.0.0...v4.1.0
v4.0.0
Way faster URL updates, using native window.history by default for Next.js, to avoid _rsc requests and keep performance.
Full Changelog: v3.1.0...v4.0.0
v3.0.0
What's Changed
useUrlStatehook for React-router by @asmyshlyaev177 in #10
Full Changelog: v2.6.0...v3.0.0