UseSuspenseQuery is called twice
When useSuspenseQuery is used from the client, the query is called twice on the server and client side together. (When useQuery is used, it is only called once).
I want to avoid sql being issued repeatedly, is this normal behaviour?
We believe the problem is probably that the request is also being executed on the browser side.
I do not want to do a complex implementation using cache. I would like to know how to control the fetching of the latest data, for example, during screen transitions or when new data is registered.
discuttion: https://github.com/trpc/trpc/discussions/5920
0 Replies