-
Notifications
You must be signed in to change notification settings - Fork 55
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
[Feature]: change react query v4 network mode default to always #1442
Comments
People can be co-author:
|
Let's do this feature as v3 BREAKING CHANGE |
@gwansikk Could you make Pull Request for this issue please? |
Of course! I'll try to do it ASAP. |
@gwansikk Let's do this issue urgently! |
This task will be completed by the end of today! I'm working on it. |
Filling migration guide for this change is also important task. Keep it mind too please |
# Overview closed: #1442 In React Query v4, the `OnlineManager` checks the client's network status using `navigator.onLine`. However, this can sometimes cause bugs in Chrome (Chromium-based browsers), where the network is incorrectly detected as offline even when it is online. To minimize this issue, React Query v5 no longer relies on `navigator.onLine`. In React Query v4, to minimize this issue, **networkMode is set to always in Suspense Hooks**. This change ensures that TData in Suspense remains guaranteed. ref: - https://github.com/TanStack/query/blob/v4/packages/query-core/src/onlineManager.ts#L92 - TanStack/query#4753 - https://issues.chromium.org/issues/338514113 ## PR Checklist - [x] I did below actions if need 1. I read the [Contributing Guide](https://github.com/toss/suspensive/blob/main/CONTRIBUTING.md) 2. I added documents and tests. --------- Co-authored-by: Jonghyeon Ko <jonghyeon@toss.im>
Package Scope
@suspensive/react-query-4
Description
changed the default network mode to "always" in react query v4.
Possible Solution
No response
etc.
The text was updated successfully, but these errors were encountered: