F
Filament9mo ago
kool

Duplicate Query in Resource Navigation Badge

I don't know why this results in two queries to fetch the count.
No description
No description
10 Replies
kool
koolOP9mo ago
No description
kool
koolOP9mo ago
Note that it does not matter if i either used the resource model builder or the builder itself directly
No description
Dan Harrin
Dan Harrin9mo ago
Do the backtraces differ for each call
kool
koolOP9mo ago
Yes
kool
koolOP9mo ago
No description
kool
koolOP9mo ago
No description
kool
koolOP9mo ago
HasRoutes and HasNavigation 🤔
Dan Harrin
Dan Harrin9mo ago
is this the first nav item in the entire panel if you open an issue with a simple reproduction repo i'll fix it
kool
koolOP9mo ago
It occurs for every nav item (resource), I will try to reproduce it and submit an issue with it
NathanaelGT
NathanaelGT9mo ago
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()

Did you find this page helpful?