SIGN IN SIGN UP
TanStack / query UNCLAIMED

🤖 Powerful asynchronous state management, server-state utilities and data fetching for the web. TS/JS, React Query, Solid Query, Svelte Query and Vue Query.

0 0 0 TypeScript

fix(query-sync-storage-persister): Relax undefined check against storage to handle null values (#5095)

* fix: Relax undefined check against storage to handle null values

Fixes #4957.

On Android WebView if `setDomStorageEnabled` is not configured,
`window.localStorage` will be `null` (rather than `undefined`).

Relax the existing conditional to check if `storage` is present to
handle both `null` and `undefined` values to remove a gotcha here.

* docs: update storage type

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
N
Nicholas Firth-McCoy committed
d23d8934ce08ef0f359e77a50a03dc02aafc0932
Parent: 73e21ce
Committed by GitHub <noreply@github.com> on 3/17/2023, 4:45:48 PM