Skip to content

Feature request: Provide an isLoading boolean in the options object returned by the hook #81

Description

@iamgrid

isLoading should be false to begin with and only flip to true when:

  • 'value' was read from localStorage, parsed and ready to use,
  • [or if no localStorage value was present on the user's device] when the default has successfully been saved and loaded into 'value'
  • [or if localStorage is erroring] when the fallback is good to go and the default has been loaded into 'value'

Thank you for considering this feature request! :)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions