Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
@mantine/hooks] use-local-storage: Fix error for environments where l…
…ocalStorage can be null (e.g. Android WebView) (#2613) 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.
- Loading branch information