rooks icon indicating copy to clipboard operation
rooks copied to clipboard

useLocalstorageState doest reinitialize when new key is provided

Open junqdu opened this issue 8 months ago • 1 comments

e.g. https://codesandbox.io/p/sandbox/quizzical-smoke-p455gq?file=%2Fsrc%2FApp.js%3A2%2C10-2%2C30 Clicking on button1 should set key:1, value:['test'] in local storage, but instead the value is [].

junqdu avatar Jun 26 '24 21:06 junqdu