Hello, is there any way to create a base router with common procedures? like an interface
I want all routers that use it have the state procedure (subscriptions), so I can create a common hook later
Although the implementation of the methods is completely different on each router, I just want to guarantee that they have those procedures, like an interface
The hook basically will subscribe to the state on mount, and unsubscribe on unmount
Thanks
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
t
tRPC
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.