t
tRPC
using same query for entries app - tRPC
N
tRPC
•
3y ago
•
6 replies
Night
using same query for entries app
How to use same query for many components
?
I don
't want to request api for many times
;
-
;
I can
't passing by props because I have
Header
Header
component that wrapper in
Layout
Layout
component
and I want to use query in Header component too
If i
'm do this
It
's will need to run query 2 times
Solution
Jump to solution
tRPC
Join
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
4,951
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Using HTTP:POST for `query`?
H
hsubra89 / ❓-help
3y ago
Using react-query parameters in tRPC for useQuery
A
ati / ❓-help
3y ago
Error using prefetch query with TanStack Query
C
coder2000 / ❓-help
12mo ago
Example Repo for NextJS App Router + React Query + tRPC
B
Børge / ❓-help
11mo ago