-
-
Notifications
You must be signed in to change notification settings - Fork 259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[rpc] add Middleware / (public|unpublic)Procedure #4033
Comments
I think middleware configuration metadata on the request is fine, but since it’s shared with the client I think an implementation instance should not exist on the Request but somewhere on the server side. Until there is official support, I would suggest to use a HOC at your handler definitions, |
For many reasons, I'm not comfortable with rpc anyway. No naming (organization by entities), no documentation, no middleware, and difficult to cache and not library ready |
have you considered multiple RPC endpoints for the naming/organization? |
If you mean about RpcRouter.make(RpcRouter.make) - then yes and there is no naming or closing into a single object. |
What is the problem this feature would solve?
no possibility to create middleware / procedure
What is the feature you are proposing to solve the problem?
I know there is middleware for http, but it doesn't work for me because I don't plan to use http. I only need to use the server side (server components and server react actions) and I don't need http for that and I don't need to create endpoints either
What alternatives have you considered?
trpc: https://trpc.io/docs/server/procedures#reusable-base-procedures
The text was updated successfully, but these errors were encountered: