Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Ionic Storage - To Stringify or not?

$
0
0

@mshollyintellicon wrote:

I have a pretty far along Ionic 2 app, and wanted to consolidate services. I took a look at the Ionic Super Starter and liked the Settings provider, but they aren’t stringifying before storing. Which is fine for the example, since its simple key/value storage. Also fine for most under the hood storage tech that the Ionic Storage takes care of for you.

But if I wanted to start storing more complex data with arrays with multiple levels. Then do I pipe directly to Ionic Storage, and not use the Settings provider as is? And if I favor compatibility with LocalStorage by stringifying, am I taking a significant performance hit or missing out on features? Since I’ll need to stringify and parse anytime I interact with Storage.

This app will be available on web, mobile, and hopefully Electron eventually. Interested in everyone’s thoughts and experiences. Thanks

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>