Closed ducNgbk closed 3 years ago
Hi, how can I support versioning of my data?
For example
makePersistable( this, { storage: AsyncStorage, name: this.PersistKey, properties: ['listData'], version: 1.0.0, }, {delay: 100, fireImmediately: false}, );
then in future, I increase 1.0.0 to 1.1.0, my persisted properties will be initialized again (not getting data from previous version)
I know, this library has
expireIn: 86400000, removeOnExpiration: true,
But I don't know exactly when I will change my properties structure
What if you just rename the key? Example:
class Store { - persistKey = 'key'; + persistKey = 'key-1'; }
Would it work out?
@kubk yep, you'll right
@kubk brilliant, thanks very much, you rock it
Hi, how can I support versioning of my data?
For example
then in future, I increase 1.0.0 to 1.1.0, my persisted properties will be initialized again (not getting data from previous version)
I know, this library has
But I don't know exactly when I will change my properties structure