use-persisted-state icon indicating copy to clipboard operation
use-persisted-state copied to clipboard

A custom React Hook that provides a multi-instance, multi-tab/browser shared and persistent state.

Results 48 use-persisted-state issues
Sort by recently updated
recently updated
newest added

Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.7.6 to 4.7.7. Changelog Sourced from handlebars's changelog. v4.7.7 - February 15th, 2021 fix weird error in integration tests - eb860c0 fix: check prototype property access in...

dependencies

Minimal code for reproducing the problem: ```jsx import React from 'react'; import createPersistedState from 'use-persisted-state'; const useFlag = createPersistedState("flag"); function Inner() { const defaultFlag = false; const [flag, setFlag] =...

Bumps [y18n](https://github.com/yargs/y18n) from 3.2.1 to 3.2.2. Commits See full diff in compare view Maintainer changes This version was pushed to npm by oss-bot, a new releaser for y18n since your...

dependencies

I'm not 100% sure this is correct... in fact I'm only around 60% sure. But I figured I'd open a PR and you could tell me what I'm getting wrong...

I'd like to use an alternate `createStorage` that prevents errors from being thrown when attempting to access the storage provider. There can be many reasons why an error might be...

I'll try to post more but I'm getting this when values are loaded between windows ``` Uncaught SyntaxError: Unexpected token c in JSON at position 0 at JSON.parse () at...

This PR closes #33. It uses [dequal](https://github.com/lukeed/dequal) to perform deep value comparison between the old and the new state in order to avoid unnecessary renders on client components.

Right now this hook can produce unexpected hooks because it will return a different object even if its value is identical to the previous one. Considered that we are working...

usePersistedState.js:13 often fails with parsing non JSON data. only on Safari and React Native (likely only mac devices) I can provide more details should someone be maintaining the package?

``` SyntaxError: Unexpected token e in JSON at position 1 at JSON.parse() at current(./node_modules/use-persisted-state/dist/use-persisted-state.m.js:1:766) at n(./node_modules/@use-it/event-listener/dist/event-listener.m.js:1:199) at n(./node_modules/@sentry/browser/esm/helpers.js:70:1) ``` See line 12 below: https://github.com/donavon/use-persisted-state/blob/02a847a8a46360cac1ee8f3c5ad3726875667c1e/src/usePersistedState.js#L11-L16 Other modules may use localStorage and...