vendredi 11 août 2017

Ember Store doesnot persists data across tabs

Suppose In Tab 1 - When I check in Ember Store - I have record {id : "1", firstname : "ABC" , lastname : "XYZ"}

In Tab 2 - When I check in Ember Store - I have record {id : "1", firstname : "ABC" , lastname : "XYZ"}

Now If I update record say lastname to KLM in tab1. Then I m able to see lastname as XYZ in tab2

I am using the following strategy - 1. Check data is present in store by store.peekALL 2. If data is not present then make store.query

Until I refresh tab2 I doesn't get the latest value.

Why doesn't store data persist across the tabs?




Aucun commentaire:

Enregistrer un commentaire