Skip to content

Releases: wanjas/react-use-url-state

2.0.5

24 Jul 02:17
Compare
Choose a tag to compare
  • Remove debugging console.log

2.0.3

18 Jul 02:24
Compare
Choose a tag to compare

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

20 Sep 05:16
Compare
Choose a tag to compare
  • 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

02 May 10:05
Compare
Choose a tag to compare
  • Use Next.js router if it's available (for /pages and /app)

1.0.1

26 Jan 06:28
Compare
Choose a tag to compare
  • Docs and readme changes
  • Cypress tests

1.0.0

28 Dec 08:53
Compare
Choose a tag to compare
  • Rename updateState to setValues.
  • Domain for docs

0.3.2

08 Dec 04:20
Compare
Choose a tag to compare

Minor chores and readme updates

0.3.1

02 Dec 03:43
Compare
Choose a tag to compare

Home page

0.3.0

02 Dec 03:40
Compare
Choose a tag to compare

Internal subscription to events improvements

0.2.0

29 Nov 13:59
Compare
Choose a tag to compare

Clearer initial state