3 ms·
> a wrapper that will fall back to it if localstorage lookups fail. If I understand correctly, the scenario is that saved data in localStorage is lost, so that
by the_gipsy 7y ago
> a wrapper that will fall back to it if localstorage lookups fail.
If I understand correctly, the scenario is that saved data in localStorage is lost, so that won't help.
- makeramen 7y ago“It” in this case is native storage, not localStorage
- the_gipsy 7y agoYes, that was clear. You say it uses localstorage, and only fallback to native when localstorage is not available. This is not the scenario of the bug. Here, localstorage is available, it just has been wiped out.
- low_key 7y agoNative storage protects against this scenario, though. It isn't safe to assume that localstorage will be retained.