dose-amigos / dose-amigos-ionic

Mobile code for Dose Amigos: Don't miss a dose with help from your amigos.
1 stars 4 forks source link

Issue #66: Refresh Pages on Pop if Data May Have Changed #67

Closed mckoon closed 8 years ago

mckoon commented 8 years ago

In the places where we push/pop pages onto the Nav stack, if the data has changed, publish an event. The pages behind the new page will subscribe to this event, and refresh their data when it is fired.

This was changed for the new-dose-medication page, which fires an event that refreshes the med-list page.

This was changed for new-amigo-request, which fires an event that refreshes the amigos and requests pages.

mckoon commented 8 years ago

I have a PR that needs this work coming now to add loading feedback.

Merging this without reviewers. Will deal with it later if this is a problem.