How to use the @glimmer/reference.dirty 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 emberjs / ember.js / packages / @ember / -internals / glimmer / lib / utils / outlet.ts View on Github external
update(state: OutletState) {
    this.outletState.outlets.main = state;
    dirty(this.tag);
  }
}
github emberjs / ember.js / packages / @ember / -internals / metal / lib / tags.ts View on Github external
export function markObjectAsDirty(obj: object, propertyKey: string, _meta?: Meta): void {
  let meta = _meta === undefined ? metaFor(obj) : _meta;
  let objectTag = meta.readableTag();

  if (objectTag !== undefined) {
    if (DEBUG) {
      assertTagNotConsumed!(objectTag, obj);
    }

    dirty(objectTag);
  }

  let tags = meta.readableTags();
  let propertyTag = tags !== undefined ? tags[propertyKey] : undefined;

  if (propertyTag !== undefined) {
    if (DEBUG) {
      assertTagNotConsumed!(propertyTag, obj, propertyKey);
    }

    dirty(propertyTag);
  }

  if (objectTag !== undefined || propertyTag !== undefined) {
    ensureRunloop();
  }
github emberjs / ember.js / packages / @ember / -internals / metal / lib / tags.ts View on Github external
if (DEBUG) {
      assertTagNotConsumed!(objectTag, obj);
    }

    dirty(objectTag);
  }

  let tags = meta.readableTags();
  let propertyTag = tags !== undefined ? tags[propertyKey] : undefined;

  if (propertyTag !== undefined) {
    if (DEBUG) {
      assertTagNotConsumed!(propertyTag, obj, propertyKey);
    }

    dirty(propertyTag);
  }

  if (objectTag !== undefined || propertyTag !== undefined) {
    ensureRunloop();
  }
}