Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@mantine/hooks] use-local-storage: Fix error when localStorage is null #2613

Merged
merged 1 commit into from Oct 3, 2022
Merged

Commits on Oct 3, 2022

  1. @mantine/hooks] use-local-storage: Fix error when localStorage is null

    By default, `window.localStorage` is set to null in Android WebViews
    unless the embedding app has explicitly enabled storage, leading to an
    uncaught exception in this hook. Fix it by checking for null and
    returning the default value.
    kdrag0n committed Oct 3, 2022
    Copy the full SHA
    34208ce View commit details
    Browse the repository at this point in the history