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

Re-export Slot so consumers need not import it from @wry/context #613

Merged
merged 1 commit into from
Nov 28, 2023

Conversation

benjamn
Copy link
Owner

@benjamn benjamn commented Nov 6, 2023

Because Apollo Client uses the Slot constructor directly here, it needs to have a direct dependency on the @wry/context package in addition to depending on optimism, which has caused dependency version mismatches leading to duplicate installs of @wry/context, which can cause problems with some bundlers.

Instead, when you're already using optimism, you might as well import the same version of Slot that it uses, which is what this PR enables.

@benjamn benjamn self-assigned this Nov 6, 2023
@benjamn benjamn merged commit 1c3a4c1 into main Nov 28, 2023
4 checks passed
@benjamn benjamn deleted the reexport-context.Slot branch November 28, 2023 01:05
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.

1 participant