-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
fix(dev): pass script props to deferred inline script tags #6389
fix(dev): pass script props to deferred inline script tags #6389
Conversation
🦋 Changeset detectedLatest commit: b6ae4f9 The changes in this PR will be included in the next version bump. This PR includes changesets to release 18 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Hi @jack-r-warren, Welcome, and thank you for contributing to Remix! Before we consider your pull request, we ask that you sign our Contributor License Agreement (CLA). We require this only once. You may review the CLA and sign it by adding your name to contributors.yml. Once the CLA is signed, the If you have already signed the CLA and received this response in error, or if you have any questions, please contact us at hello@remix.run. Thanks! - The Remix team |
Thank you for signing the Contributor License Agreement. Let's get this merged! 🥳 |
If anyone's watching and has ideas on how to get this (or some other fix) merged, I'm all ears. This is blocking feature development on our end (we can't defer with a content security policy) and I'm happy for anything I can do to help this along. |
I've got a patch with a fix for this if anyone else needs to get unblocked: patch
|
@jack-r-warren, I don't have time at the moment to look into why there are test failures, but if you could look into it I'm sure that would help the team prioritize this. |
Thanks @jack-r-warren! Tested locally and this looks great 👍 |
🤖 Hello there, We just published version Thanks! |
🤖 Hello there, We just published version Thanks! |
🤖 Hello there, We just published version Thanks! |
Sorry I didn't see the comments on this, thanks so much @brophdawg11 / @kentcdodds! |
🤖 Hello there, We just published version Thanks! |
Closes #5156, Closes #5539
If you pass a nonce or some other prop to
<Scripts />
, it doesn't get added to all of the script tags that might be written — the ones that handle deferred data won't get it. This PR just passes the props all the way down (seeb2be332
).Testing Strategy: I added a test in
fe7d61e
.