I'm building an app & using a local storage store for some of the data.
I woud like to pre-load the store when the app originally loads, but then uses the data in local storage in future use of the app.
I have attempted to use the 'load' callback to check if there is any data present after load, & the load the defaults if not, however the check for whether the data exists seems to not see the data in initial app load. Each time I load the app it adds another copy of the default data set. Can anyone help me understand what I'm doing wrong?
Source code can be found here... http://pastebin.com/Ht3N9NhF