fengzi91
How to invalidate cached data or show loading state during data filtering in SolidStart?
I'm working with a query in SolidStart and want to show a loading state when filtering data. Here's my current implementation:
Currently, the loading state only shows on the initial page load. When I click the "completed" filter button, it doesn't show the loading state - it just replaces the list when the new data arrives. I want to show the loading state when switching filters, essentially invalidating
todos.latest
when the filter changes.
Any suggestions on how to achieve this? Thanks in advance!9 replies