Duplicate Query in Resource Navigation Badge
I don't know why this results in two queries to fetch the count.
10 Replies
Note that it does not matter if i either used the resource model builder or the builder itself directly
Do the backtraces differ for each call
Yes
HasRoutes and HasNavigation 🤔
is this the first nav item in the entire panel
if you open an issue with a simple reproduction repo i'll fix it
It occurs for every nav item (resource), I will try to reproduce it and submit an issue with it
I personally always avoid run expensive code directly inside the filament methods. An easy solution if I run into that situation is to wrap it inside
once()