useLinkController hook.
useLinkController
Provides initLinkController and presentLinkController methods with a shared loading state. Call initLinkController once when your checkout screen loads, then presentLinkController when the customer taps your Link button.
initLinkController
presentLinkController
loading
Whether an operation is currently in progress.
Initializes the LinkController with the provided configuration. Must be called before presentLinkController.
Presents the Link flow. Must be called after initLinkController.
This API is in private preview and may change without notice.
useLinkControllerhook.Provides
initLinkControllerandpresentLinkControllermethods with a sharedloadingstate. CallinitLinkControlleronce when your checkout screen loads, thenpresentLinkControllerwhen the customer taps your Link button.