Skip to content

v4.0.0

Latest

Choose a tag to compare

@Salable-App Salable-App released this 13 Nov 12:56
· 4 commits to main since this release

4.0.0 (2023-11-13)

Features

  • add 'state' value to useUser return (0db3eab)
  • allow updating of granteeId via context hook (0ac4e56)

BREAKING CHANGES

  • user no longer returns null, instead it returns a 'state' value of 'success' | 'loading' | 'error'.

This will massively simplify usage of the hook, especially when it comes to handling both loading states and errors.