Skip to content

fix(types): make TVariables default to unknown on Mutation - #7433

Merged
TkDodo merged 5 commits into
mainfrom
feature/default-mutation-type-parameters
May 15, 2024
Merged

fix(types): make TVariables default to unknown on Mutation#7433
TkDodo merged 5 commits into
mainfrom
feature/default-mutation-type-parameters

Conversation

@TkDodo

@TkDodo TkDodo commented May 15, 2024

Copy link
Copy Markdown
Collaborator

we only need void as the default for MutationOptions so that we can fire mutations with no parameters without passing undefined to them explicitly. For reading mutations and mutationState, unknown is better.

we only need `void` as the default for MutationOptions so that we can fire mutations with no parameters without passing undefined to them explicitly. For reading mutations and mutationState, unknown is better.
@vercel

vercel Bot commented May 15, 2024

Copy link
Copy Markdown

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

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
query ⬜️ Ignored (Inspect) Visit Preview May 15, 2024 2:16pm

@nx-cloud

nx-cloud Bot commented May 15, 2024

Copy link
Copy Markdown

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 0cd503f. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 1 target

Sent with 💌 from NxCloud.

@codesandbox-ci

codesandbox-ci Bot commented May 15, 2024

Copy link
Copy Markdown

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 0cd503f:

Sandbox Source
@tanstack/query-example-angular-basic Configuration
@tanstack/query-example-react-basic-typescript Configuration
@tanstack/query-example-solid-basic-typescript Configuration
@tanstack/query-example-svelte-basic Configuration
@tanstack/query-example-vue-basic Configuration

@TkDodo
TkDodo merged commit c2861c4 into main May 15, 2024
@TkDodo
TkDodo deleted the feature/default-mutation-type-parameters branch May 15, 2024 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant