Simple repeater and $get
Hi,
When using
$get
on a simple repeater, the state shown is not the simple array of value shown in the doc, but the internal representation of the repeater.
returns
Is this a known behavior? An issue?
Thanks.4 Replies
Hi @mathieutu, that's the normal behavior if I'm not mistaken
(nice to see you finally get into filament ;))
normal behaviorYeah, but I find it weird to not have the same value from $get than when stored in DB or passed in as default.
finally get into filamentNot without pain, I'm afraid 😅
Yeah, $get() doesn't query the DB, it gets the livewire object or something like that...
What are you trying to do? Maybe I can help, I had some repeaters in my last project as well
By the way, a big major version of Filament is about to come (no date yet), so if you're not in a hurry I'd advise to wait for it...
No need to query the dB here. But just to have the same result when using $get and getState() on the same form.
Good to know, thanks! But my project is well started, so I'll see and update when the new version will come.