psteinroe / supabase-cache-helpers

A collection of framework specific Cache utilities for working with Supabase.

Home Page:https://supabase-cache-helpers.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remove item from list if update causes filter to be false

psteinroe opened this issue · comments

Is your feature request related to a problem? Please describe.
Imagine a list of conversations that have a status "open" or "closed". If one conversation is updated, we currently only update the item without validating whether the filter still applied. Hence the conversation has the status "closed" but is still in the list of "open" conversations.

Describe the solution you'd like
After updating an item, check if should be removed from the list by applying the filter of that key.