Changes to a local storage collection are successfully being persisted to local storage and useLiveQuery will return the updated data, but then revert back to the pre-modified data. Refreshing the window/tab then reflects the expected updated state. If I switch to a local only collection the issue no longer occurs. This doesn't happen everywhere I'm using useLiveQuery with the same local storage collection, so there is something unique about the way I'm using it combined with local storage. I'm not sure if I'll be able to make a repro case but curious if there is any idea of what might be going on ...
Changes to a local storage collection are successfully being persisted to local storage and
useLiveQuerywill return the updated data, but then revert back to the pre-modified data. Refreshing the window/tab then reflects the expected updated state. If I switch to a local only collection the issue no longer occurs. This doesn't happen everywhere I'm usinguseLiveQuerywith the same local storage collection, so there is something unique about the way I'm using it combined with local storage. I'm not sure if I'll be able to make a repro case but curious if there is any idea of what might be going on ...