Working with multiple tabs in your Filament ListPage and want to keep the selected tab active even after a refresh? Here's a clean solution using session state.
The trick
Just override the mount()
and updatedActiveTab()
methods in your ListRecords page like this:
Now when users select a tab (like Published), that tab will stay active even after they refresh the page.
Conclusion
Simple UX boost. No extra packages. All native Filament ;)