I have a CRUD to experiment and test things with my backend, and I have noticed something strange with this two nested routes:
- clients/index hits the back end
- clientes/show/:id do not (when following a link)
Maybe this happens because the only source of truth is the model already loaded in index. Is that true? If I reload the show page it does hit the backend.
I don’t like this behaviour too much, but now I have just discovered that in the show route… I have nothing!!
Is Ember Data magically creating the “return this.store.findRecord” action?
What I want now is to improve the call to manage errors with promises, but I don’t know where is that call to the back end.
I am a little bit lost with this magic