View Source Philtre.LiveBlock (philtre v0.11.1)

Single live component in charge of rendering all types of live blocks.

Current implementation infers block type from struct module and simply delegates major callbacks to the bloc module.

Later implementations might instead take block type from some sort of registry and require some sort of return format from the block modules, to decide how to render them.

Ideally, we want individual blocks to be decoupled from the editor.

Link to this section Summary

Link to this section Functions

Link to this function

handle_event(event, payload, socket)

View Source

Callback implementation for Phoenix.LiveComponent.handle_event/3.

Callback implementation for Phoenix.LiveComponent.render/1.

Callback implementation for Phoenix.LiveComponent.update/2.