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

refactor(rect-query): prefer client-only import over 'use client' #5626

Merged
merged 2 commits into from
Jun 25, 2023

Conversation

TkDodo
Copy link
Collaborator

@TkDodo TkDodo commented Jun 25, 2023

for things that cannot work on the server, like the QueryClientProvider or the hooks; this will give better error message when attempted to be used in a server component

for things that cannot work on the server, like the QueryClientProvider or the hooks; this will give better error message when attempted to be used in a server component
@TkDodo TkDodo requested a review from Ephem June 25, 2023 09:58
@vercel
Copy link

vercel bot commented Jun 25, 2023

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

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
query ⬜️ Ignored (Inspect) Jun 25, 2023 10:21am

@TkDodo
Copy link
Collaborator Author

TkDodo commented Jun 25, 2023

@Ephem this is a follow-up to:

@nx-cloud
Copy link

nx-cloud bot commented Jun 25, 2023

☁️ Nx Cloud Report

CI is running for commit f27633d.

📂 Click to track the progress, see the status, the terminal output, and the build insights.


Sent with 💌 from NxCloud.

@codesandbox-ci
Copy link

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 f27633d:

Sandbox Source
@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
Collaborator

@Ephem Ephem left a comment

Choose a reason for hiding this comment

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

Looks good to me!

I noticed the build was failing, I'm guessing the failing test is just a flaky one since it's a vue-test?

image

Also noticed it complained about the package rollup-plugin-preserve-directives was missing, do you know why? Seemed to happen after the bump right?

@TkDodo
Copy link
Collaborator Author

TkDodo commented Jun 25, 2023

I had to bump the package to fix the build error

@Ephem
Copy link
Collaborator

Ephem commented Jun 25, 2023

Oh, there was that .type-error before the bump, I missed that. Now it's complaining it can't find the package though. 🤔

@TkDodo
Copy link
Collaborator Author

TkDodo commented Jun 25, 2023

the only remaining failure is the flaky vue test

@TkDodo TkDodo merged commit 3e25f51 into main Jun 25, 2023
@TkDodo TkDodo deleted the feature/use-client branch June 25, 2023 14:19
TkDodo added a commit that referenced this pull request Jun 26, 2023
TkDodo added a commit that referenced this pull request Jun 27, 2023
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