Ionic React Hooks only fire once

Hi,

I have a calendar view that displays a different day depending on a param in the url. (e.g. /day/2020-01-01/)
I’m using the useState hook, but it only runs on the initial render, and then when you select another date to view you’re only ever stuck on the first date you selected.

useIonViewWillEnter does run, but updating state within that doesn’t work.

How can I force a functional component to rerender?

code? can you provide a sample