New features
PR #672
- Added
useCheckoutElements(): use this inside<CheckoutElementsProvider>. - Added
useCheckoutForm(): use this inside<CheckoutFormProvider>. - Both new hooks throw a clear runtime error if called under the wrong provider.
useCheckout()is now deprecated in favor of the two hooks above. It will keep working under both providers for backward compatibility and is planned for removal in the next major release (v7.0.0).