Skip to content
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

Tanstack start integration #82

Open
RajaARK99 opened this issue Jan 11, 2025 · 3 comments
Open

Tanstack start integration #82

RajaARK99 opened this issue Jan 11, 2025 · 3 comments

Comments

@RajaARK99
Copy link

Is this possible to support tanstack start.

@unnoq
Copy link
Owner

unnoq commented Jan 12, 2025

Does Tanstack start support "use server" keyword or must use createServerFn for create server function

@elliotnash
Copy link

It does support the "use server" directive, although createServerFn is the recommended way of creating server functions

@unnoq
Copy link
Owner

unnoq commented Jan 13, 2025

If it supports "use server", it can already work with .actionable. For more complex scenarios, I believe I can develop @orpc/start to facilitate integration. It might look something like this:

const getting = os.input(z.object({ name: z.string() })).handler(({ input }) => `Hello, ${input.name}`);

export const gettingFunction = createORPCFunction(getting);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants