Skip to content

2.0.3

Choose a tag to compare

@wanjas wanjas released this 18 Jul 02:24
· 4 commits to main since this release

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')))