Select cached data without using hooks #2488
Answered
by
phryneas
tommytritran
asked this question in
Q&A
-
I'm trying to select cached data from RTKQ without using the auto-generated query hook, but I'm having trouble understanding the docs.
This is how the docs describe how to access the data, but I can't find any references on how to inject the state object "select()(state)". I can't figure out how to access the data if I only call the select?
Can someone explain me the difference between "select()" and "select()(state)" Or what is the optimal solution to access the cached data from RTKQ? |
Beta Was this translation helpful? Give feedback.
Answered by
phryneas
Jul 5, 2022
Replies: 1 comment
-
Answered on StackOverflow |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
phryneas
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Answered on StackOverflow