defmodule LivebookWeb.SessionLive.VegaLiteComponent do use LivebookWeb, :live_component @impl true def mount(socket) do {:ok, socket} end @impl true def update(assigns, socket) do socket = assign(socket, id: assigns.id) {:ok, push_event(socket, "vega_lite:#{socket.assigns.id}:init", %{"spec" => assigns.spec})} end @impl true def render(assigns) do ~L"""
""" end end