Releases: wanjas/react-use-url-state
Releases · wanjas/react-use-url-state
2.0.5
- Remove debugging
console.log
2.0.3
Minor rewrite
Breaking
- Use zod's
.default()
function instead of passing initialValue
to the hook.
- useUrlRouter(z.object(val: z.string().optional()), { val: 'default_value' }))
+ useUrlRouter(z.object(val: z.string().default('default_value')))
1.1.1
- Next.js router's
push
seems to become not synchronous. That leads to the state being one step behind.
Next.js router's use is disabled at the moment in favor of a more generic approach.
1.1.0
- Use Next.js router if it's available (for
/page
s and /app
)
1.0.1
- Docs and readme changes
- Cypress tests
1.0.0
- Rename
updateState
to setValues
.
- Domain for docs
0.3.2
Minor chores and readme updates
0.3.0
Internal subscription to events improvements