Closed ozyman42 closed 3 years ago
This is caused by the change that was made when resolving https://github.com/astoilkov/use-local-storage-state/issues/26.
Probably I shouldn't write the value on the initial render when a value isn't passed.
I just made a new release that includes the change. Thanks for reporting!
this outputs
this should ideally output
Why is the hook updating local storage when the client code never instructs it to do so?