Livex.Handlers (livex v0.2.0)

Handlers for component events in Livex.

This module contains functions for handling events that are dispatched to components.

Summary

Functions

Handles component events by mapping parameters and calling pre_render.

Functions

handle_component_event(module, params, socket)

Handles component events by mapping parameters and calling pre_render.

This function is used internally by Livex to process events that are sent to components.

Parameters

  • module - The component module
  • params - The event parameters
  • socket - The LiveView socket

Returns

  • {:noreply, socket} - The updated socket after processing the event