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

Move cleanup out of Observer subscription initializer #96

Merged
merged 1 commit into from
Sep 20, 2023
Merged

Conversation

phryneas
Copy link
Member

This should fix #93

@phryneas
Copy link
Member Author

/release:pr

@github-actions
Copy link
Contributor

A new release has been made for this PR. You can install it with npm i @apollo/[email protected].

@@ -124,6 +124,7 @@ export class NextSSRApolloClient<
);
});

promise.finally(cleanup);
Copy link
Member Author

Choose a reason for hiding this comment

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

This should always get executed, but in the old codepath it would only be executed if a subscriber was attached to the Observable.

Copy link
Member

@jerelmiller jerelmiller left a comment

Choose a reason for hiding this comment

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

💯

@phryneas phryneas merged commit a6ffed7 into main Sep 20, 2023
@phryneas phryneas deleted the pr/fix-93 branch March 6, 2024 10:48
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.

useSuspenseQuery first refetchQueries doesn't trigger
2 participants