Closed DavidNguyen67 closed 4 months ago
The question is very unclear, and this appears to be A) about Redux Toolkit (not the Redux core library), and B) a usage question. Could you ask this in the "Discussions" section of https://github.com/reduxjs/redux-toolkit instead?
I want to proactively abort a query in a React component when necessary. At the same time, I want to use useEffect to ensure that the query will be canceled when the component is unmounted.
BTW, thank for show me where i can disscus
userApi.slice.ts
Component.tsx
anyone can help me? to optimize it ? like define type for var
promise
?