UNPKG

@zedux/atoms

Version:

A Molecular State Engine for React

9 lines (8 loc) 351 B
import { readInstance } from '../classes/EvaluationStack.js'; /** * An unrestricted injector (can actually be used in loops and if statements). * * Returns the currently-evaluating AtomInstance. Note that this instance will * not have its `exports`, `promise`, or `store` set yet on initial evaluation. */ export const injectSelf = readInstance;