How to use the @ember-data/store/-private.recordIdentifierFor function in @ember-data/store

To help you get started, we’ve selected a few @ember-data/store 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 / data / packages / model / addon / -private / model.js View on Github external
get() {
      if (this._isReloading === undefined) {
        let requests = this.store.getRequestStateService().getPendingRequestsForRecord(recordIdentifierFor(this));
        let value = !!requests.find(req => req.request.data[0].options.isReloading);
        return (this._isReloading = value);
      }
      return this._isReloading;
    },
    set(_, value) {