Evan Sims
Evan Sims

Reputation: 93

Checking if a record is loaded in Ember Data

Is there a way of checking for the presence of a specific record (using primary key) in Ember Data's model cache without invoking a server query to fetch it if it's missing? I am using the RESTAdapter.

Upvotes: 0

Views: 1057

Answers (1)

Dejan Biljecki
Dejan Biljecki

Reputation: 605

hasRecordForId checks if a record is loaded in the store and returns a bool

Upvotes: 2

Related Questions