useRunicInstance function

Module @runic-artifex/vue in @runic-artifex/vue 0.23.0

function useRunicInstance(): RunicInstance;

The Runic instance of the calling component: that of the nearest provideRunicInstance (or runicInstanceKey on the app). Without one, and outside a component's setup(), it is the current instance: that of an enclosing instance.run, otherwise the page instance.