use-local-storage-state test
Branch: main (current release)
0
isPersistent: true
How to test the bug:
Open Firefox, go to about:config, set dom.storage.enabled to false, then reload this page.
Expected: Counter shows 0 (defaultValue), isPersistent is false
Bug on main: Counter shows nothing (undefined), isPersistent stays true, increment/decrement throws errors