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.
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.