Skip to content

expose UseTRPCQueryResult#61

Merged
OrJDev merged 2 commits intosolidjs-community:mainfrom
oscartbeaumont:expose-use-trpc-query-result
May 28, 2024
Merged

expose UseTRPCQueryResult#61
OrJDev merged 2 commits intosolidjs-community:mainfrom
oscartbeaumont:expose-use-trpc-query-result

Conversation

@oscartbeaumont
Copy link
Contributor

@oscartbeaumont oscartbeaumont commented May 17, 2024

It's useful to be able to define a function which can take in the query result including the tRPC extras such as path.

Eg.

function createSomeQueryAbstraction(query: UseTRPCQueryResult) {
   // ...
}

const query = trpc.some.query.useQuery();
createSomeQueryAbstraction(query);

@changeset-bot
Copy link

changeset-bot bot commented May 17, 2024

🦋 Changeset detected

Latest commit: 0df7af8

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@solid-mediakit/trpc Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented May 17, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
mediakit ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 17, 2024 11:34am

@OrJDev OrJDev merged commit 11f6af4 into solidjs-community:main May 28, 2024
@OrJDev
Copy link
Collaborator

OrJDev commented May 28, 2024

Thank you

@OrJDev
Copy link
Collaborator

OrJDev commented May 28, 2024

Looks like this was missing, hopefully it will work now

5e862de

@oscartbeaumont oscartbeaumont deleted the expose-use-trpc-query-result branch May 29, 2024 03:23
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

Successfully merging this pull request may close these issues.

2 participants