Re-export Slot
so consumers need not import it from @wry/context
#613
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 onoptimism
, 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 ofSlot
that it uses, which is what this PR enables.