How to use the @glimmer/tracking.consume function in @glimmer/tracking

To help you get started, we’ve selected a few @glimmer/tracking 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.js / packages / @glimmer / application / src / components / component-managers / custom.ts View on Github external
get(_target, prop) {
        if (capturedArgs.named.has(prop as string)) {
          let ref = capturedArgs.named.get(prop as string);
          consume(ref.tag);

          return ref.value();
        }
      },

@glimmer/tracking

Glimmer property tracking library

MIT
Latest version published 3 years ago

Package Health Score

56 / 100
Full package analysis

Popular @glimmer/tracking functions