How do I get the store to not reload data from API (findQuery)


#1

I have a route which uses a query to get the appropriate records:

this.store.find('book', {library: params.library}),

So, I need to get all the books within a certain library from the server. This works fine. However, I noticed that this gets reloaded every time I select a different library, even if that library has been selected previously and all the needed entries are in the store. From what I have read in the guides I was under the impression that ember data would only query the server if it doesn’t have the needed data. So, I was stepping through the code using the debugger and could not find any such check if the needed entries already are in the store.

Is this not supported?


#2

Dang. I guess this is what the filter function is for…