LunaCrafts
LunaCrafts
TtRPC
Created by LunaCrafts on 5/28/2024 in #❓-help
Using tRPC (createCallerFactory) with react-query.
and it work quite well. But without react-query I have to write all of the hooks manually.
8 replies
TtRPC
Created by LunaCrafts on 5/28/2024 in #❓-help
Using tRPC (createCallerFactory) with react-query.
yeah
8 replies
TtRPC
Created by LunaCrafts on 5/28/2024 in #❓-help
Using tRPC (createCallerFactory) with react-query.
8 replies
TtRPC
Created by LunaCrafts on 5/28/2024 in #❓-help
Using tRPC (createCallerFactory) with react-query.
Hey @infodusha! I initialize tRPC 'server-side' code on browser-side, and to be fair I do it quiet often. As you can see, I initialized tRPC with two flags (isServer set to false, and allowOutsideOfServer set as true). It's very useful approach and totally makes sense in some cases but I can agree It's not very common use-case. It works very well, and you can initialize 'server-side' code in a browser this way. However, I'm not able to use any third-party packages this way, because they require "trpc client", not caller. I would like to make that happen, because otherwise I need to repeat myself and write all of the hooks manually
8 replies
TtRPC
Created by LunaCrafts on 2/28/2024 in #❓-help
CreateCaller with React-query
A bit messy. I'd like to avoid it
14 replies
TtRPC
Created by LunaCrafts on 2/28/2024 in #❓-help
CreateCaller with React-query
No description
14 replies
TtRPC
Created by LunaCrafts on 2/28/2024 in #❓-help
CreateCaller with React-query
However, I have to create hooks manually
14 replies
TtRPC
Created by LunaCrafts on 2/28/2024 in #❓-help
CreateCaller with React-query
It's very clean, I really like it
14 replies
TtRPC
Created by LunaCrafts on 2/28/2024 in #❓-help
CreateCaller with React-query
I wrote a very simple SDK to the blockchain. I create a websocket connection and I pass it to tRPC router context. Then I expose some methods to communicate with this websocket via tRPC.
14 replies
TtRPC
Created by LunaCrafts on 2/28/2024 in #❓-help
CreateCaller with React-query
Haha yeah that was my initial thought, but I kinda failed once with implementing it and ufortunately don't have enough time to give another try
14 replies
TtRPC
Created by LunaCrafts on 2/28/2024 in #❓-help
CreateCaller with React-query
So I have trpc router on the client-side (browser). And then I create instance of this router (using createCaller) also client-side (browser)
14 replies
TtRPC
Created by LunaCrafts on 2/28/2024 in #❓-help
CreateCaller with React-query
Thanks for answer. I am using @trpc/server only client-side. No server-side at all
14 replies
TtRPC
Created by LunaCrafts on 10/28/2022 in #❓-help
Is inferRouterInputs & inferRouterOutputs exported from trpc-server?
4 replies
TtRPC
Created by LunaCrafts on 10/19/2022 in #❓-help
Multiple React providers
Thank you Alex!! 🙏
4 replies
TtRPC
Created by LunaCrafts on 10/19/2022 in #❓-help
Multiple React providers
If not, is this scenario going to be supported anytime soon?
4 replies