-
As the question says: What is the proper way of accessing Redux store in RR6 loader? For example, I want to access user token, make a fetch request using it, and then possibly redirect to other route based on response? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Import the store and call |
Beta Was this translation helpful? Give feedback.
-
Genius! |
Beta Was this translation helpful? Give feedback.
Import the store and call
store.getState()