Current section
Files
Jump to
Current section
Files
include/sprocket@context_Context.hrl
-record(context, {
view :: sprocket@context:element(),
wip :: sprocket@context:component_wip(),
handlers :: list(sprocket@context:event_handler()),
render_update :: fun(() -> nil),
update_hook :: fun((sprocket@internal@utils@unique:unique(), fun((sprocket@hooks:hook()) -> sprocket@hooks:hook())) -> nil),
dispatch_event :: fun((sprocket@internal@utils@unique:unique(), binary(), gleam@option:option(binary())) -> {ok,
nil} |
{error, nil})
}).