-
-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
using Preload component on its own #62
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have a several-step form which sometimes includes stripe. I'm already using a
Script
and it works. But now I want to Preload stripe javascript on the first step if I know for sure that second step will include stripeSo I'm doing
which fails, since Preload renders children which are undefined. And I have to write
<Preload href="https://js.stripe.com/v3/" rel="preload" as="script">{null}</Preload>
.So maybe change this line https://github.com/palmerhq/the-platform/blob/2e24147c26124f65519a69e73d17bcc8c61c2d91/src/Preload.tsx#L34 into
return children || null
?The text was updated successfully, but these errors were encountered: