You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, @wagmi/connectors is a hard dependency on wagmi. We are considering making @wagmi/connectors a peer dependency.
Pros of hard dependency
No need to install @wagmi/connectors separately, manage version bumps, etc. This means you can just install wagmi and you are good to go import { coinbaseWallet } from 'wagmi/connectors'. The @wagmi/connectors version is always compatible with your version of wagmi.
Cons of hard dependency
Installs more packages than required. If you don't use coinbaseWallet, it's dependencies will still be installed by your package manager. In most setups (Next.js, Vite, etc.), unused code (in this case coinbaseWallet) will NOT be included in your final bundle.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Currently,
@wagmi/connectors
is a hard dependency onwagmi
. We are considering making@wagmi/connectors
a peer dependency.Pros of hard dependency
@wagmi/connectors
separately, manage version bumps, etc. This means you can just installwagmi
and you are good to goimport { coinbaseWallet } from 'wagmi/connectors'
. The@wagmi/connectors
version is always compatible with your version ofwagmi
.Cons of hard dependency
coinbaseWallet
, it's dependencies will still be installed by your package manager. In most setups (Next.js, Vite, etc.), unused code (in this casecoinbaseWallet
) will NOT be included in your final bundle.15 votes ·
Beta Was this translation helpful? Give feedback.
All reactions