Skip to content

feat: unify client api with caller api #7091

@darklight9811

Description

@darklight9811

Describe the feature you'd like to request

For example, tanstack start allows us to create an isomorphic function that can handle both client and server calls, but we are not able to use this with trpc because callers go directly to method name and client calls have an object containing mutate/query.

Describe the solution you'd like to see

make client (vanilla) use functions instead of objects
or
make callers be objects containing mutate/query functions.

Describe alternate solutions

A lot of code that I wasn't actually able to get it working

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