Lavash.Component.Runtime (Lavash v0.4.0-rc.1)

Copy Markdown View Source

Runtime implementation for Lavash Components.

Handles:

  • Props from parent
  • Internal socket/ephemeral state
  • Read/form DSL (like LiveView)
  • Derived state computation
  • Action execution (including submit, notify_parent)
  • Assign projection

Summary

Functions

handle_event(module, event, params, socket)

update(module, assigns, socket)