You forgot to tell the user to install uuid @types/uuid mobx. Also you have no examples of RootStoreModel anywhere.
uuid
@types/uuid
mobx
RootStoreModel
In rootStore.ts you are importing UserStore.ts and AuthStore.ts but then you have your UserStore.ts also importing RootStoreModel from rootStore.
rootStore.ts
UserStore.ts
AuthStore.ts
/** * import RootStoreModel * Dependency cycle detected.eslintimport/no-cycle * Module '"./rootStore"' has no exported member 'RootStoreModel'.ts(2305) * Peek Problem (⌥F8) * Quick Fix... (⌘.) **/ import { RootStoreModel } from "./rootStore";
Hi, is there any examples of RootStoreModel? I'm a bit confused where it fits in...
This works for me:
import React, { FC, createContext, ReactNode, ReactElement } from 'react'; import { RootStore, rootStore } from '../root/root.store'; export const StoreContext = createContext<RootStore>(rootStore);
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
You forgot to tell the user to install
uuid
@types/uuid
mobx
. Also you have no examples ofRootStoreModel
anywhere.In
rootStore.ts
you are importingUserStore.ts
andAuthStore.ts
but then you have yourUserStore.ts
also importingRootStoreModel
from rootStore.Hi, is there any examples of RootStoreModel? I'm a bit confused where it fits in...
This works for me: