Default Values For Dashboard Filters
I am using Filament 3.x. I have a custom dashboard taking advantage of use HasFiltersForm to apply a set of filters to the table widget + stat widgets on the page.
But it seems the Dashboard is either caching filter values or is storing them somewhere other than the URL. When I click the Dashboard nav item or clear the ?filters query param from the URL -- the dashboard filters still have their previous value. So the user ultimately has no way to NULL out the filters.
I know there is a way to disableCaching explicitly on a table via ->persistFiltersInSession(false), but this seems missing for the filterForm() methods or I have not figure out a way to make this happen.
There are a few GitHub issues that seem related, but they did not have a ton of information on how to fix this: https://github.com/filamentphp/filament/issues/14180 https://github.com/filamentphp/filament/issues/7875 Has anybody run into this issue? How did you solve? Thanks for your help π
There are a few GitHub issues that seem related, but they did not have a ton of information on how to fix this: https://github.com/filamentphp/filament/issues/14180 https://github.com/filamentphp/filament/issues/7875 Has anybody run into this issue? How did you solve? Thanks for your help π
1 Reply
Hi,
i'm just overrided this