0.7.1 • Published 2 years ago
@taqtile/ts-mobx-persist-extensions v0.7.1
Mobx Persist Extension Module
This module contains Mobx's Persist extensions.
Contents
Persist Store decorator
PersistStore
is a decorator that abstracts the mobx-persist hydration process.
It automatically hydrates the store upon creation, streamlining store implementation and reducing boilerplate code. The selected storage is set to AsyncStorage.
Sample usage
import { PersistStore } from '@taqtile/mobx-extensions';
@Service() // Typedi
@PersistStore()
export class MyStore {
@persist @observable foo: string; // Will be persisted in LocalForage/AsyncStorage
@observable bar: string; // Will NOT be persisted
}
0.7.1
2 years ago
0.6.0
3 years ago
0.5.0
5 years ago
0.4.0
5 years ago
0.3.3-alpha.1
5 years ago
0.3.3-alpha.0
5 years ago
0.2.2
6 years ago
0.2.1
6 years ago
0.2.0
6 years ago