Probably has been asked before, apologies if so...
Basically I want to write to local storage with the search param's value upon successful navigation.
Let's say I have a <Link to="." search={...} /> i.e. only updates the search params on the current page. What's the recommended way of committing that change to localstorage?
My first thought was to make use of onEnter + onStay . Although preferable from a React perspective, it feels wrong to do the work on the rendered Link's onClick (or similar) prop.