PhoenixVapor.VueRuntime (PhoenixVapor v0.3.0)

Copy Markdown View Source

Full Vue component runtime in QuickBEAM.

Mounts a Vue application server-side with the complete component runtime — defineComponent, provide/inject, onMounted, render functions, slots, and third-party component libraries (Reka UI, etc.).

Unlike PhoenixVapor.Runtime (which uses only @vue/reactivity), VueRuntime loads the full Vue runtime and renders into QuickBEAM's lexbor DOM. The resulting HTML feeds into %Phoenix.LiveView.Rendered{} for LiveView's diff protocol.

Summary

Functions

Evaluate arbitrary JS, flush Vue updates, return new HTML.

Returns a specification to start this module under a supervisor.

Dispatch a named event to __pv_handlers, return updated HTML.

Get the current DOM HTML.

Functions

call(runtime, js_code)

Evaluate arbitrary JS, flush Vue updates, return new HTML.

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

dispatch(runtime, event, params \\ %{})

Dispatch a named event to __pv_handlers, return updated HTML.

render(runtime)

Get the current DOM HTML.

start_link(opts)

stop(runtime)