Skip to content

feat: server/links/procedureLink #3079

@deckchairlabs

Description

@deckchairlabs

Describe the feature you'd like to request

Came across a need to have a separate trpc client for server side that calls procedures directly. I think this is probably useful enough to be included in tRPC.

I imagine it would live within the server package, since this is only really useful in a server side context.

Describe the solution you'd like to see

I've created an implementation here for our use case

https://github.com/exhibitionist-digital/ultra/blob/main/examples/with-trpc/src/trpc/server.tsx

Desribe alternate solutions

Just providing docs of how to create a custom procedure that does the above.

Additional information

No response

👨‍👧‍👦 Contributing

  • 🙋‍♂️ Yes, I'd be down to file a PR implementing this feature!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions