You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The cache values end up correct, but the storage values are not. The behavior is documented but we might want to fix it eventually.
One idea I had:
Set an internal flag that Onyx.clear() is still running and hasn't fully cleared storage.
While that happens batch any new writes to storage or flag which keys need to be saved after we are done, but allow cached values to be set, merged, whatever.
Once Storage.clear() is done we can sync up any queued "writes" with the values in the cache.
The text was updated successfully, but these errors were encountered:
cc @neil-marcellini and coming from #129 (comment)...
Unsure if there is any observable problem with this at the moment, but it just doesn't seem like the expected behavior.
This is how this code runs today...
The cache values end up correct, but the storage values are not. The behavior is documented but we might want to fix it eventually.
One idea I had:
Onyx.clear()
is still running and hasn't fully cleared storage.Storage.clear()
is done we can sync up any queued "writes" with the values in the cache.The text was updated successfully, but these errors were encountered: