mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2026-07-31 02:32:53 +08:00
Extracts the 5s timeout state and effect into a reusable hook. Accepts an optional timeoutMs parameter for testability and cleans up the timer on unmount or when the preview loads in time. |
||
|---|---|---|
| .. | ||
| script-params.js | ||
| use-preview-timeout.js | ||