Created
August 10, 2021 16:19
-
-
Save information-security/7a662cb982f0f499e683429c8850f939 to your computer and use it in GitHub Desktop.
How to access redux store on Safari
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Tested with Safari Version 12.1 (14607.1.40.1.4), running following line in Safari's console did the trick for me: | |
document.getElementById('root')['_reactRootContainer'] | |
._internalRoot.current.child.memoizedProps | |
.children.props.store.getState() | |
A related StackOverflow post: | |
https://stackoverflow.com/questions/59584733/how-do-i-access-the-redux-store-in-safari/68730213#68730213 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment