문제

I'm fetching a list of records using App.store.findQuery and my custom adapter (very similar to the default REST adapter). This calls my servers /resources url and fetches an array of json hashes with only a few fields for each resource.

Later on, when users navigate to a "details" page, I want to get more data for a particular record from the server. When I call App.store.find (passing the record's id), I get back the original fetched record and the adapter's find method is not called.

How do I force the store to call the find method in the adapter when a record already exists? or what's the best way to first get a list of records with few fields and then get details for a particular record with many fields?

tks.

올바른 솔루션이 없습니다

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top