Closed alexfoxy closed 7 years ago
If you're always retrieving all the projects you could just store these projects in an array. Which can also be stored via NativeStorage.
This feature is now implemented by @ydeshayes (through PR #61)
Great, I did it the way you suggested any way but this will be useful in the future 👍
I'm storing a bunch of saved projects on an app I'm working on. When the user boots up I want to get all of their projects and list them. Previously I was saving the projects as JSON (stringified) to localStorage and pulling them out when the app booted up e.g:
I can't see a way to do something similar with NativeStorage. Would you suggest keeping an index in storage e.g. "project_ids" instead?
Thanks, Alex