Hey folks, I’m trying to use list with inputs_for , but I’m getting this errors:
[error] ** (ArgumentError) the Access module supports only keyword lists (with atom keys), got: “_persistent_id”
If you want to search lists of tuples, use List.keyfind/3(elixir 1.19.5)
lib/access.ex:362: Access.get/3
(phoenix_live_view 1.1.22) lib/phoenix_component.ex:2853: anonymous fn/2 in Phoenix.Component.apply_persistent_id/4
(elixir 1.19.5) lib/enum.ex:2520: Enum.“-reduce/3-lists^foldl/2-0-”/3
(phoenix_live_view 1.1.22) lib/phoenix_component.ex:2853: Phoenix.Component.apply_persistent_id/4
(phoenix_live_view 1.1.22) lib/phoenix_component.ex:2828: Phoenix.Component.“inputs_for (overridable 1)”/1
(phoenix_live_view 1.1.22) lib/phoenix_live_view/tag_engine.ex:137: Phoenix.LiveView.TagEngine.component/3
My form
to_form(%{"list" => []})
My view
<ul class="list bg-base-100 rounded-box shadow-md">
<.inputs_for :let={item} field={f[:list]}>
<li class="list-row">
{item[:value]}
</li>
</.inputs_for>
</ul>






















