Questions tagged [mobx-persist]
19 questions
0
votes
2 answers
TS error: Argument of type 'null' is not assignable to parameter of type 'Error | PromiseLike | undefined'.ts(2345)
I am using Mobx Persist Store that saves MobX Store to Local Storage.
The docs doesn't have a TS version so I modified 2 lines (one in readStore & another in writeStore which you can compare with…

deadcoder0904
- 7,232
- 12
- 66
- 163
0
votes
1 answer
Persist data with mobx-persist and AsyncStore
I'm trying to use AsyncStorage ('@react-native-community/async-storage') persistance using mobx-persist. My implementation is basically this: https://github.com/pinqy520/mobx-persist. I can see my store hydrated (in constructor of store itself). I…

ror
- 3,295
- 1
- 19
- 27
0
votes
1 answer
MobX React Native throws cannot read property of undefined
I'm trying to pass one mobX store to another store, following are my store codes:
Store class 1:
export default class APIKeyStore
{
@persist @observable apiKey = '****';
}
Store Class 2:
export default class ServiceCalls
{
@persist…

Santanu Karar
- 1,034
- 1
- 12
- 27
-1
votes
1 answer
State persistence between sessions, with nextjs and mobx
Has anybody else managed to get state persistence between sessions, with nextjs and mobx?
I keep running into issues with this. Any help would be appreciated.

user19721589
- 11