CurrentRunicInstance constant

Module @runic-artifex/views-effect in @runic-artifex/views-effect 0.23.0

const CurrentRunicInstance: Context.Reference<RunicInstance>;

The Runic instance that the Effects and streams of this package connect and read through: the default instance (defaultInstance() from @runic-artifex/views, the page instance or in a component bundle its element's) unless one is provided. A guest that runs inside another page provides its own:

const instance = createRunicInstance({ bridge });
program.pipe(Effect.provideService(CurrentRunicInstance, instance));