superKalo / super-repo

📦 Repository-ish pattern for working with and storing client-side data!

Home Page:https://css-tricks.com/importance-javascript-abstractions-working-remote-data

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add option for fire a callback each time when data is synced successfully

superKalo opened this issue · comments

While working on a side project powered by SuperRepo, I had to refresh a chart each time my data is synced successfully.

Therefore, I plan to enhance the initSyncer() method with an option to pass an (optional) callback which will be executed every time when the data is synced successfully.