F
Filament‱7mo ago
AlĂȘ

Computed properties

Hello team, This is a computed property on Livewire 3, i want use this on filament, i means, every time i interact with form, the filament make a new query but im not touching the client model so i don't want make unnecessary querying in my database. thanks in advance đŸ€ 
6 Replies
AlĂȘ
AlĂȘ‱7mo ago
its my computed property on livewire 3 (example)
No description
AlĂȘ
AlĂȘ‱7mo ago
its my filament view
No description
AlĂȘ
AlĂȘ‱7mo ago
its my filament component
No description
AlĂȘ
AlĂȘ‱7mo ago
i checked my checkbox input ( reactive) and many query at debugbar
No description
AlĂȘ
AlĂȘ‱7mo ago
AlĂȘ
AlĂȘ‱7mo ago
i want share a filament issue at github https://github.com/filamentphp/filament/issues/1306 basicly i move my Product::query() to my mount() method, i helped a lot, but i want prevent touch $this->table every time i change the state of any reative filament component
GitHub
Duplicate query execution in Widgets · Issue #1306 · filamentphp/fi...
Package filament/filament Package Version 2.9.8 Laravel Version 8.80.0 Livewire Version 2.10.0 PHP Version 8.1.1 Bug description When I try to show the count of user in dashboard. Its executing the...