Multitenant : Issues persistFiltersInSession on
My User can have many companies ,
Imagine I have filament table with filter department . and my client filter on Company A .
then he switch company to Company B . obviously because of
persistFiltersInSession
, department_id still in session where that department not exists on Company B .
how should I handle this ?
can I clear persistFilterinSession when user switch company ?
I am using table inside livewire component
3 Replies
because different company will have different department so yeah ..
Have you enabled multi-tenancy?
But you can do this with the getStateUsing() and clear the state if $state isn't in the list I have done this before
I do this on middleware .