Open bishsbytes opened 3 months ago
Is it saving only the values you that specifically set? Or is it saving some but not all of the data that returns back from Supabase? If so which fields is it missing?
Is it possible you can share a repo with me that I can use to test? If not I'll see if I can reproduce it in my supabase test project.
I've notcied I'm seeing inconsistent sync / persist behaviour using the supabase plugin with ObservablePersistMMKV.
In testing on web and viewing what's in local storage, after calling 'set' I notice that the object that eventually gets persisted is missing a lot of the returned supabase fields. Here's an example:
Here's my store setup:
And here's how I'm calling 'set':
I can't see why they aren't being persisted correctly. If I clear out localstorage and reload, all the objects are persisted correctly. It's only when they are added via 'set' - the new object will never persist in its entirety. I can see the full object being returned from supabase in the network request, but not sure what's causing them to be removed when persisted?