API slice onQueryStarted, getState seems to only want to access state of the API slice, intentional? #3522
Unanswered
julian-kingman-lark
asked this question in
Q&A
Replies: 1 comment
-
No, The problem is the TS typing. Because of how |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have an API slice with a bit that looks like this:
I get the error:
I think this is because
getState
is expecting to only access local API slice state. Is that correct? Is that intentional? I need access to other parts of state, should I be usingstore
directly? (redux tends not to like that, b/c it creates dependency circles).Thanks in advance! I hope it becomes easier to integrate regular slices with API slices in the future.
Beta Was this translation helpful? Give feedback.
All reactions