Reactive Client DB Cache
I’ve been using SWR to cache Supabase queries, but I don’t want to manually trigger a refetch every time I do an insert/update. Has anyone built/seen a reactive db replica/cache on the client?
For more context, the scenario I’m thinking is the following:
I’m showing a list of X, when the user creates a new X, I want the list to update immediately with the local data, and also trigger a new query request to Supabase.
I might build this if it doesn’t exist, but I wanted to first ask about it.
For more context, the scenario I’m thinking is the following:
I’m showing a list of X, when the user creates a new X, I want the list to update immediately with the local data, and also trigger a new query request to Supabase.
I might build this if it doesn’t exist, but I wanted to first ask about it.