-
Notifications
You must be signed in to change notification settings - Fork 36
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
restart simulated streamed request on stream close #62
Conversation
// eslint-disable-next-line @typescript-eslint/ban-ts-comment | ||
// @ts-ignore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just to get the CI to shut up until #61 is merged - I'll remove that later.
queryManager | ||
.fetchQuery(queryId, { | ||
...queryInfo.options, | ||
context: { | ||
...queryInfo.options.context, | ||
queryDeduplication: false, | ||
}, | ||
}) | ||
.finally(() => queryManager.stopQuery(queryId)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ce1fe39
to
7dad495
Compare
/release:pr |
A new release has been made for this PR. You can install it with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
This would solve the situation where the server renders a
useBackgroundQuery
, but does not consume thequeryRef
, so the stream closes before the result can be transported over.