You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to define a pre-typed version of createAsyncThunk as described here in the docs, but I end up with a circular import for RootState that errors my slice (because I'm using createAsyncThunk in a slice that imports the RootState type from the store file that also imports the same slice I'm using).
That doesn't look like a TypeScript error at all - this is a runtime error we fixed over in #2885 that will be released within the next few days as 1.9.1.
Meanwhile, you can try to work with the CodeSandbox CI build from that PR.
Hello there!
I'm trying to define a pre-typed version of createAsyncThunk as described here in the docs, but I end up with a circular import for RootState that errors my slice (because I'm using createAsyncThunk in a slice that imports the RootState type from the store file that also imports the same slice I'm using).
Reproduction:
https://codesandbox.io/s/redux-starter-kit-circular-slice-dependencies-example-forked-dferhs?file=/src/counterA.tsx
I created a minimal codesandbox for reproduction you can check it out here.
I checked the older issues and none of the fixes worked for me.
Issues I checked:
#2770
#1126
The text was updated successfully, but these errors were encountered: