-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
extraReducers 'ReferenceError: Cannot access before initialization' with inject #4303
Comments
zz707
changed the title
extraReducer 'ReferenceError: Cannot access before initialization' with inject
extraReducers 'ReferenceError: Cannot access before initialization' with inject
Mar 25, 2024
it sounds like you might have a circular dependency issue - could you share a repo? |
Sorry, no. |
I'm having the same issue, and i'm don't have circular dependency |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
store.ts
projectEditSlice.ts
projectUpdateCommonInfo.ts
Only the
await dispatch(projectGetById(id));
is called on the edit page and i recieve errorReferenceError: Cannot access 'projectUpdateCommonInfo' before initialization
.If I make a slice ordinary, without lazy loading and add it directly to the rootReducer, then everything works without errors.
Please tell me where my mistake is.
The text was updated successfully, but these errors were encountered: