I'm using this.props.history.push('/', { signOut: true })
for when user clicks a button.
It does work, but even though I refresh /
the data is always persisted. How can I make it so it only happens once (when a user clicks a button), then I'm able to handle the logic :)
Are there any other ways to do this? Would love the help ;c