Link executes on the first button press, but not on subsequent tries. Doesn't operate properly until the page is reloaded.
I have the following:
<Link to="/dashboard">
<button type="button" className="pPlus" onClick={() => saveFunction(state)}>Purchase Offset Credits</button>
</Link>
It works and refreshes /dashboard the first time I press the button, but subsequent times /dashboard isn't refreshed even though state variables have changed. "saveFunction(state)" is correctly executed each time.
Thank you for any ideas.