Search
Loading...
Skip to content

Interface: BuilderRenderContext

Properties#

PropertyTypeDescription
builderBuilder-
global{ <T> (id, defaultValue): object; <T> (id): object; }Global state object that can be used to store and retrieve values. It will take a unique identifier for this state that can be used to access this store later. const { value, setValue } = global('unique-id', 'default-value'); If no default value is set, the value property may be undefined if no value was set before: const { value, setValue } = global('unique-id', 'default-value'); Param The unique identifier for the state. Param The default value for the state.