大塚 桂生
TTCTheo's Typesafe Cult
•Created by 大塚 桂生 on 8/19/2024 in #questions
How do I set the cookie in the procedure?
I am using the ‘npm create t3-app@latest’ app router.
Here I do not want to use nextAuth for authentication, I want to use email address and password.
However,
Perhaps use NextResponse to implement the following?
But how would I set the cookie in the procedure and let the requesting browser set it?
https://github.com/gonta1026/next-my-template
する?
2 replies
TTCTheo's Typesafe Cult
•Created by 大塚 桂生 on 8/6/2024 in #questions
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
2 replies