Comments (11)
Just landed here from the nextjs issue. Just want to share that personally this kind of comment I saw makes me feel sad. For what it’s worth, with experience and time, I learned that respect and empathy are incredibly important in life.
Not sure if whatever I can say would help, but @TkDodo even if we don’t know each other, I really appreciate the work you’re doing and understand fully your point. Not to create debate, we’re all doing mistakes, and it’s ok. But let’s keep a vibrant, helpful, enthusiastic community around this project. It’s fun, it’s great and a lot to learn from. So thank you and sorry if this comment is not really related to the issue.
from query.
@TkDodo why you are so toxic? Why need reproduction for obvious bug based on major update to framework. Anyway you will fix it near feature. Be proud, you closed this issue like a man, because someone doesn't have a reproduction for you
from query.
Imo the toxicity comes from people demanding time from open source maintainers without putting in the minimal required effort for themselves. Now you want me to create a nextJs14.1 project myself, and setup react query in the same way as you have to check if there is in even an issue on our end? Do you not think it's more likely that this is a nextJs issue rather than a React Query issue since nextJs just released a new version and it just so happens that you get errors like:
'useRef' is not exported from 'react' (imported as 'React').
as if I'm personally bundling react and leaving out useRef
!? Just because the stack trace you're getting has react-query
in there?
from query.
I really hope you've learned your lesson and won't waste maintainers' time without a reproduction in the future. Consider sponsoring the TanStack to fund our work 🙏
from query.
Yes it was a framework issue, to fix:
- remove browserslist[] from package.json
- delete .next folder
source(vercel/next.js#60890 (comment))
Have a nice day
from query.
@TkDodo
Can you help me check this error? Thank you 🙇♂️
I'm using NextJS 14.0.4 and @tanstack/react-query ^5.18.0
from query.
build and production: working
dev: not working
from query.
Your minimal, reproducible example
no
YES. I'll re-open this once there is a reproduction
from query.
@TkDodo I not demand anything. I showed error and problem. Please compare your first answer where you closed a issue depends on something what you don't like and the last answer. I am sorry if my issue triggered you. The problem maybe in next.js, but everything works without react query and as I mentioned in second comment everything works in build and production, but not in development.
Also I checked other open issues (like #6734) and only what I did wrong - put Provider.tsx at other place of issue, why you closed only my issue?
from query.
I closed the issue because it has no reproduction, and I also said I'll reopen it once there is a reproduction. We've had reports in the past where useEffect
was missing in React
, I spend time looking into it and it turned out that next had a different version of React for edge deployments and it was just a huge waste of my time.
If the issue is important to you, as it clearly is, create a codesandbox with next14 that shows the error.
from query.
FWIW to solve this issue you can install @tanstack/query-core as a dev dependency since pnpm does not resolve it properly especially if preserveSymlinks
is set to true
from query.
Related Issues (20)
- Prefetched queries in SvelteKit that uses TRPC are refetched on the client regardless of staleness
- Cancelling query retry on observer unsubscribe inconsistency HOT 2
- useInfiniteQuery causes NotifyEventQueryObserverOptionsUpdated event to be fired without query set
- different behavior without/with developer console HOT 3
- react query 3.39.3 devtools error HOT 1
- Error Boundary Error: A component suspended HOT 1
- The query gets stuck at `fetching` status when re-fetched data has cycles HOT 4
- Devtools + async persistence + custom queryKeyHashFn doesn't work HOT 14
- Solid Query: App crashes when a query in a component is resolved before a query in a context provider HOT 2
- 'PersistQueryClientProvider' refers to a value, but is being used as a type here. Did you mean 'typeof PersistQueryClientProvider' HOT 2
- docs: Wrong URL for Nextjs example HOT 6
- `useQuery` with `initialData` is returning `undefined` data when another query with the same key a no `initialData` is fetching HOT 3
- Example of Nextjs suspence streaming doesn't work on the site HOT 1
- useQuery infinitly refetches HOT 1
- Getting " Cannot convert a Symbol value to a string" error in NextJs HOT 1
- Solid Query is not working correctly with ErrorBoundary HOT 1
- Query never updates when using Vitest fake timers HOT 2
- Parts of queries getting terribly mixed up in some scenarios with invalidation HOT 3
- Inconsistency between docs and code Re what params are passed to FocusManager subscribers HOT 5
- Buggy interaction between returning filtered data in the combine property for useQueries function HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from query.