`form_for` deprecation warning when using FilterForm
I'm getting a deprecation warning filling up the terminal (I'll blame that for the earlier inspect non-issue!):
Line 65 of my component is the call to
<.inputs_for :let={components} field={@component[:components]}>
... I think the warning is referring to the call to form_for at https://github.com/ash-project/ash_phoenix/blob/main/lib/ash_phoenix/filter_form/filter_form.ex#L948 but not totally sure6 Replies
🤔
oh, yeah
you're right
I think that just needs to be calling
to_form
not form_for
ah, ok, let me try
At the line you pointed out in ash_phoenix source
passing everything else through as opts to
to_form/2
?I think so...will be able to look into it a bit more later
no worries, I'll have a poke around. If i get stuck i'll stick up an issue on gh