Skip to content

fix(react-query): remove placeholderData from suspense query#6973

Merged
TkDodo merged 1 commit intoTanStack:mainfrom
HJZzzzz:hjzzzz
Feb 27, 2024
Merged

fix(react-query): remove placeholderData from suspense query#6973
TkDodo merged 1 commit intoTanStack:mainfrom
HJZzzzz:hjzzzz

Conversation

@HJZzzzz
Copy link
Copy Markdown
Contributor

@HJZzzzz HJZzzzz commented Feb 25, 2024

No description provided.

@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 25, 2024

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 Feb 27, 2024 6:21am

@codesandbox-ci
Copy link
Copy Markdown

codesandbox-ci Bot commented Feb 25, 2024

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 567736c:

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

Copy link
Copy Markdown
Collaborator

@TkDodo TkDodo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks. could you please add a test for your use-case, where placeholderData is set globally ?

@nx-cloud
Copy link
Copy Markdown

nx-cloud Bot commented Feb 25, 2024

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 567736c. 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


🟥 Failed Commands
nx affected --targets=test:format,test:sherif,test:knip,test:eslint,test:lib,test:types,test:build,build --parallel=3

Sent with 💌 from NxCloud.

@HJZzzzz
Copy link
Copy Markdown
Contributor Author

HJZzzzz commented Feb 26, 2024

thanks. could you please add a test for your use-case, where placeholderData is set globally ?

yeap, added two test cases for suspense query & queries

@TkDodo
Copy link
Copy Markdown
Collaborator

TkDodo commented Feb 26, 2024

there are some issues on formatting and types

@HJZzzzz
Copy link
Copy Markdown
Contributor Author

HJZzzzz commented Feb 26, 2024

there are some issues on formatting and types

Fixed the formatting and types.

But the useMutationState test passed in my local.
Idk why it failed in ci.

@TkDodo
Copy link
Copy Markdown
Collaborator

TkDodo commented Feb 26, 2024

there are still formatting issues

@HJZzzzz
Copy link
Copy Markdown
Contributor Author

HJZzzzz commented Feb 27, 2024

there are still formatting issues

Revised again.

But the failing tests(useMutation & useMutationState) are not related with the code i changed. And from what i see the test passed in my local?
Do you have any ideas why its failing in CI?
Screenshot 2024-02-27 at 10 06 36 AM
Screenshot 2024-02-27 at 10 08 39 AM

@TkDodo
Copy link
Copy Markdown
Collaborator

TkDodo commented Feb 27, 2024

Do you have any ideas why its failing in CI?

flaky tests, ignore it

@HJZzzzz
Copy link
Copy Markdown
Contributor Author

HJZzzzz commented Feb 27, 2024

Do you have any ideas why its failing in CI?

flaky tests, ignore it

I see. Are there any other things i need to revise?

@TkDodo TkDodo merged commit d82c83e into TanStack:main Feb 27, 2024
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.

3 participants