My blog post describes a quick and simple way to sync localStorage with data coming from a remote source. Would like to hear any feedback on this.
Thanks
My blog post describes a quick and simple way to sync localStorage with data coming from a remote source. Would like to hear any feedback on this.
Thanks
You need to get a syntax plugin for your blog so that your code can have syntax highlighting but more importantly for indention.
Mitchell Simoens @LikelyMitch
Modus Create, Senior Frontend Engineer
________________
Need any sort of Ext JS help? Modus Create is here to help!
Check out my GitHub:
https://github.com/mitchellsimoens
Thanks for the feedback. I've finally found out how to do this with a wordpress.com site. Post is looking better now. Cheers
Great post! Previously I had been attempting to do this just keeping the store's Records organized in memory by assigning the Store's records to an instance variable during the beforeload and then trying to merge them at load. However, when load is fired it has already loaded all of the new records into the Store.
So, trying to pu the old Records stored in the instance variable would cause refreshing to occur twice because I was add-ing at least some of the "old" store records back in after the new results of "load" and then therefore trigger events after the "load" when I did the "add".
So, two Stores definitely seems appropriate in this case, from my recent personal experience![]()
I remember trying to figure out how to do this a while ago and couldn't seem to find much on the topic - a much needed blog post!