Skip to content

Instantly share code, notes, and snippets.

@information-security
Created August 10, 2021 16:19
Show Gist options
  • Save information-security/7a662cb982f0f499e683429c8850f939 to your computer and use it in GitHub Desktop.
Save information-security/7a662cb982f0f499e683429c8850f939 to your computer and use it in GitHub Desktop.
How to access redux store on Safari
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