How to use the @glimmer/util.LINKED.get function in @glimmer/util

To help you get started, we’ve selected a few @glimmer/util examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github glimmerjs / glimmer-vm / packages / @glimmer / runtime / lib / lifetime.ts View on Github external
export function asyncDestroy(parent: object, env: Environment) {
  if (DEBUG) {
    console.log('asyncDestroy', parent, LINKED.get(parent));
  }

  env.didDestroy(destructor(parent));
}
github glimmerjs / glimmer-vm / packages / @glimmer / runtime / lib / lifetime.ts View on Github external
export function detachChildren(parent: Bounds, env: Environment): Option {
  if (DEBUG) {
    console.log('asyncClear', parent, LINKED.get(parent));
  }

  asyncReset(parent, env);
  return clear(parent);
}