How to cache list of items when there are few filters
Unanswered
AM posted this in #help-forum
AMOP
So i have few lists that i need to render based on filters, i know the filters a head of time and i want to implement incremental static regeneration. But for each filter i need to go and fetch the data and ofcourse when filter is changed to vizualize correct data.
I've tried wrapping my action in unstable_cache ( internally is using sdk not fetch thats why unstable_cache ) and work flawlessly but 1 issue that i'm facing is keeps the data only for 1 filter and when filter are changed nothing happens. So any idea how to implement ISR but cache to maintain few different filters
I've tried wrapping my action in unstable_cache ( internally is using sdk not fetch thats why unstable_cache ) and work flawlessly but 1 issue that i'm facing is keeps the data only for 1 filter and when filter are changed nothing happens. So any idea how to implement ISR but cache to maintain few different filters