LiveDebugger.Utils.Callbacks (LiveDebugger v0.1.4)

View Source

This module provides functions to generate a list of callbacks for LiveViews and LiveComponents.

Summary

Functions

Generates a list of all function name callbacks for LiveViews and LiveComponents.

Generates a list of callbacks for LiveComponents in form of {module, callback, arity}. Accepts a single module or a list of modules.

Generates a list of callbacks for LiveViews in form of {module, callback, arity}. Accept a single module or a list of modules.

Functions

callbacks_functions()

@spec callbacks_functions() :: [atom()]

Generates a list of all function name callbacks for LiveViews and LiveComponents.

live_component_callbacks(modules)

@spec live_component_callbacks(module() | [module()]) :: [mfa()]

Generates a list of callbacks for LiveComponents in form of {module, callback, arity}. Accepts a single module or a list of modules.

live_view_callbacks(modules)

@spec live_view_callbacks(module() | [module()]) :: [mfa()]

Generates a list of callbacks for LiveViews in form of {module, callback, arity}. Accept a single module or a list of modules.