You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'm trying to use trpc with the react-query integration in an electron app. Everything works great except that I loose all state when change some code and the UI updates via HMR. This only happens when I actively use the useQuery() or useMutation() methods from trpc. It does not happen with the vanilla hooks exposed by @tanstack/react-query. Does anybody face a similar problem?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I'm trying to use trpc with the react-query integration in an electron app. Everything works great except that I loose all state when change some code and the UI updates via HMR. This only happens when I actively use the
useQuery()
oruseMutation()
methods from trpc. It does not happen with the vanilla hooks exposed by @tanstack/react-query. Does anybody face a similar problem?Beta Was this translation helpful? Give feedback.
All reactions