getDefaultRuntime
Stable · since 0.1.0
Returns the global default Runtime, creating it lazily on first call. This is the runtime every binding falls back to when no <TriggerRuntimeProvider> is in scope. Most apps never call it directly — it’s an implementation detail of the hooks.
The function is idempotent. The first call constructs a runtime with default options; every subsequent call returns the same instance until setDefaultRuntime replaces it.
Import
Section titled “Import”Signature
Section titled “Signature”Parameters
Section titled “Parameters”None.
Returns
Section titled “Returns”The single shared Runtime instance. Subsequent calls return the same reference (===).
Examples
Section titled “Examples”Fire an event from outside React
Section titled “Fire an event from outside React”Inspect the registry from devtools glue
Section titled “Inspect the registry from devtools glue”Lazy construction proof
Section titled “Lazy construction proof”Related
Section titled “Related” setDefaultRuntime Replace the singleton — useful in tests.
createRuntime Create an isolated runtime.
Runtime type Full method surface.
TriggerRuntimeProvider Inject a runtime through context.