Closed viktorgullmark closed 10 months ago
Hey! Thanks for the great package.
Got a pretty annoying warning though after following the examples. Using latest mobx and getting the following:
App.tsx
configurePersistable( { storage: localforage, stringify: false, }, { delay: 200, fireImmediately: false }, ); const App = () => { return ( <HashRouter> <Routes> <Route path='/' index={true} element={Login()} /> <Route path='/dash' element={Dashboard()} /> </Routes> <MobxRouter /> </HashRouter> ); };
AuthStore.ts
export default class AuthStore { user?: UserDomain; code = ""; authState = uuidv4(); constructor(private rootStore: RootStore) { makeAutoObservable(this); makePersistable(this, { name: "AuthStore", properties: ["user"], }); }
It seems strange that these properties are required on a store, am I missing something or is there a way to remove the warning?
Cheers!
This issue may be resolved by #104.
Hey! Thanks for the great package.
Got a pretty annoying warning though after following the examples. Using latest mobx and getting the following:
App.tsx
AuthStore.ts
It seems strange that these properties are required on a store, am I missing something or is there a way to remove the warning?
Cheers!