vendredi 29 juillet 2016

Deleting items from a store does not give the current state in all the routes

According to emberjs documentation, store is a single source of truth. Deleting items from a store in a specific route should reflect all other routes that talks to store.

For eg: Route 1: Employee
Route 2: Manager
Store: person

Outcome:
The data is cleared after adding few items and clicking delete all. However i am seeing an error Attempted to handle event pushedData on while in state"

Refreshing the browser the error goes away, both ember data and pouch (in memory db) has no items. why deleting the store does not refresh all the routes that used the store (like getAll in model hook).

Here is the source: http://ift.tt/2avsOOr

Hosted here : http://ift.tt/2aiZeZc




Aucun commentaire:

Enregistrer un commentaire