Closed zz707 closed 1 month ago
it sounds like you might have a circular dependency issue - could you share a repo?
could you share a repo?
Sorry, no. It confuses me that everything works without inject.
I'm having the same issue, and i'm don't have circular dependency
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.