Created
March 7, 2021 20:04
-
-
Save mazz/ebf03c580d0cd3a23108148472f57625 to your computer and use it in GitHub Desktop.
@inner_content assign missing https://fullstackphoenix.com/tutorials/create-a-reusable-modal-with-liveview-component
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[error] GenServer #PID<0.1292.0> terminating | |
** (ArgumentError) assign @inner_content not available in eex template. | |
Please make sure all proper assigns have been set. If this | |
is a child template, ensure assigns are given explicitly by | |
the parent template as they are not automatically forwarded. | |
Available assigns: [:__changed__, :action, :flash, :id, :inner_block, :myself, :socket, :state] | |
(phoenix_live_view 0.15.0) lib/phoenix_live_view/engine.ex:870: Phoenix.LiveView.Engine.fetch_assign!/2 | |
(tutorial 0.1.0) lib/tutorial_web/live/modal_component.ex:42: anonymous fn/2 in TutorialWeb.ModalComponent.render/1 | |
(phoenix_live_view 0.15.0) lib/phoenix_live_view/diff.ex:353: Phoenix.LiveView.Diff.traverse/6 | |
(phoenix_live_view 0.15.0) lib/phoenix_live_view/diff.ex:580: Phoenix.LiveView.Diff.render_component/9 | |
(phoenix_live_view 0.15.0) lib/phoenix_live_view/diff.ex:194: Phoenix.LiveView.Diff.write_component/5 | |
(phoenix_live_view 0.15.0) lib/phoenix_live_view/diff.ex:261: Phoenix.LiveView.Diff.update_component/3 | |
(phoenix_live_view 0.15.0) lib/phoenix_live_view/channel.ex:218: Phoenix.LiveView.Channel.handle_info/2 | |
(stdlib 3.13.2) gen_server.erl:680: :gen_server.try_dispatch/4 | |
(stdlib 3.13.2) gen_server.erl:756: :gen_server.handle_msg/6 | |
(stdlib 3.13.2) proc_lib.erl:226: :proc_lib.init_p_do_apply/3 | |
Last message: {:phoenix, :send_update, {TutorialWeb.ModalComponent, "modal-one", %{id: "modal-one", state: "OPEN"}}} | |
State: %{components: {%{1 => {TutorialWeb.ModalComponent, "modal-one", %{action: nil, flash: %{}, id: "modal-one", inner_block: #Function<2.9786855/2 in TutorialWeb.MeiliIndexesLive.Index.render/1>, myself: %Phoenix.LiveComponent.CID{cid: 1}, state: "CLOSED"}, %{changed: %{}}, {306865049124142856831560526581187210264, %{}}}, 2 => {TutorialWeb.ModalComponent, "modal-two", %{action: nil, flash: %{}, id: "modal-two", inner_block: #Function<3.9786855/2 in TutorialWeb.MeiliIndexesLive.Index.render/1>, myself: %Phoenix.LiveComponent.CID{cid: 2}, state: "CLOSED"}, %{changed: %{}}, {306865049124142856831560526581187210264, %{}}}}, %{TutorialWeb.ModalComponent => %{"modal-one" => 1, "modal-two" => 2}}, 3}, join_ref: "4", serializer: Phoenix.Socket.V2.JSONSerializer, socket: #Phoenix.LiveView.Socket<assigns: %{changeset: #Ecto.Changeset<action: nil, changes: %{}, errors: [search_phrase: {"can't be blank", [...]}], data: %{}, valid?: false>, conn: #Phoenix.LiveView.Socket<assigns: %{flash: %{}, live_action: nil}, changed: %{}, endpoint: TutorialWeb.Endpoint, id: "phx-FmonS4UmyHAlewxm", parent_pid: nil, ...>, flash: %{}, live_action: nil, meili_indexes: [%Tutorial.Schema.MeiliIndex{__meta__: #Ecto.Schema.Metadata<:loaded, "meili_indexes">, ...}, %Tutorial.Schema.MeiliIndex{...}, ...]}, changed: %{}, endpoint: TutorialWeb.Endpoint, id: "phx-FmonS4UmyHAlewxm", parent_pid: nil, root_pid: #PID<0.1292.0>, router: TutorialWeb.Router, view: TutorialWeb.MeiliIndexesLive.Index, ...>, topic: "lv:phx-FmonS4UmyHAlewxm", transport_pid: #PID<0.1289.0>, upload_names: %{}, upload_pids: %{}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment