Property in Query Filter & Cache Invalidation
Because of the great work Convex does at keeping information up-to-date, my app UI has a weird experience that I'm trying to figure out the best solution for solving.
It is a "Tinder-like" experience where there is a stack of cards (react-native-deck-swiper) and a user can swipe left or down to remove a card from the stack. When this happens, the query cache is invalidated because the status of the card (a property selected in the query and used in filtering the cards during the query) is updated for this single card. Therefore, the cards are shuffled back to the original order which is annoying.
Two questions:
- If the card is used only as a filtering property (i.e. not selected to return), would this same behavior exist, i.e. the cache invalidation and re-pulling of the data?
- If the property was in a separate dedicated table, but still used in the same way (filtering), would this behavior continue?
Any thoughts would be helpful!
