 
   @spec assign_data_for_partial(Phoenix.Socket.t(), String.t() | atom, String.t() | atom) :: map | no_return
   defp assign_data_for_partial(socket, partial, partial_name) do
-    case socket
+    assigns = case socket
          |> ampere_assigns()
          |> Map.fetch(partial) do
       {:ok, val} ->

          Please check the path or specify the View.
          """
    end
  end

  @spec ampere_assigns(Phoenix.Socket.t()) :: map

            {Atom.to_string(k), v}
          end

        priv = socket |> Drab.pid() |> Drab.get_priv()
        partial_assigns_updated = %{priv["assigns"] | partial => assigns_to_update}
        socket |> Drab.pid() |> Drab.set_priv(%{priv | "assigns" => partial_assigns_updated})
