Honestly sounds like a situation to have a load balancer which checks the app version via headers/useragent and a second deployment without the transformer in place
This probably goes way beyond the component you've shared given it's a prop. I'd expect you're remounting the component or wiping out the QueryClient somehow