Tabs in Resource with Multiple Models
I have a Filament v3 resource that needs to display data from 3 different models in 3 separate tabs, each with completely different column structures.
My Setup:
Main model: Device
Secondary model: DeviceCred
Tertiary model: DeviceInfo
Each model has different fields and I want each tab to:
Query its own model
Display only the relevant columns for that model
Switch seamlessly between tabs
Here’s my code that mostly works, but I have to double-click the tab before it loads the correct columns (there’s a noticeable lag on the first click).
Any idea how to fix the tab refresh/double-click issue or make the table update instantly when switching?
0 Replies