Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Does Ionic storage update a key if it exists?

I'm writing an internal app that caches some data offline and generally relies on a REST api for most functions.

The official docs state that storage behaves as a key store so my assumption based on my experience with key stores is that it should update whenever I call storage.set().

Unfortunately, my data does not update and now I'm wondering if there's something I missed. Do I have to manually remove and re-set a key to update it?

Ps: I'm using Ionic 3.9.2 and the official Ionic storage plugin.

my issue has been solved by reddit thankyou guys!

 

 

Moderator edit: Removed links

Best Answer
0 Votes
1 REPLY 1

@shrutigomes wrote:

I'm writing an internal app that caches some data offline and generally relies on a REST api for most functions.Tutuapp

The official docs state that storage behaves as a key store so my assumption based on my experience with key stores is that it should update whenever I call storage.set().

Unfortunately, my data does not update and now I'm wondering if there's something I missed. Do I have to manually remove and re-set a key to update it? 9apps

Ps: I'm using Ionic 3.9.2 and the official Ionic storage plugin.


any update guys!!!

Best Answer
0 Votes