-record(context, { view :: sprocket@context:element(), wip :: sprocket@context:component_wip(), handlers :: list(sprocket@context:event_handler()), ws :: gleam@option:option(sprocket@internal@utils@unique:unique()), 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}) }).