How to use the @glimmer/reference.UpdatableRootReference function in @glimmer/reference

To help you get started, we’ve selected a few @glimmer/reference 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 / integration-tests / lib / modes / rehydration / delegate.ts View on Github external
getSelf(context: unknown): UpdatableRootReference {
    if (!this.self) {
      this.self = new UpdatableRootReference(context);
    }

    return this.self;
  }
github glimmerjs / glimmer-vm / packages / @glimmer / integration-tests / lib / components / emberish-glimmer.ts View on Github external
function getSelf(obj: EmberishGlimmerComponent): UpdatableRootReference {
  if (SELF_REF.has(obj)) {
    return SELF_REF.get(obj)!;
  } else {
    let ref = new UpdatableRootReference(obj);
    SELF_REF.set(obj, ref);
    return ref;
  }
}
github glimmerjs / glimmer-vm / packages / @glimmer / integration-tests / lib / components / basic.ts View on Github external
getSelf(component: BasicComponent): VersionedPathReference {
    return new UpdatableRootReference(component);
  }