Skip to content

v2.0.0

Compare
Choose a tag to compare
@xobotyi xobotyi released this 14 Jun 17:31
· 1285 commits to master since this release

2.0.0 (2021-06-14)

Features

  • add initializeWithValue option to useCookie hook (#120) (17c9543)

BREAKING CHANGES

  • useCookie renamed to useCookieValue
  • useCookieValue default behaviour for browsers
    changed to fetch cookie value on state initialisation.

SSR remains untouched, but requires implicit setting of
initializeWithValue option to false, to avoid hydration mismatch.