Skip to content

Commit

Permalink
Preinits should support a nonce option (#26744)
Browse files Browse the repository at this point in the history
Summary:
Currently there is no way to provide a nonce when using
`ReactDOM.preinit(..., { as: 'script' })`

This PR adds `nonce?: string` as an option

While implementing this PR I added a test to also show you can pass
`integrity`. This test isn't directly related to the nonce change.

DiffTrain build for commit facebook/react@b12bea6.

Changelog: [Internal]
<< DO NOT EDIT BELOW THIS LINE >>

Reviewed By: sammy-SC

Differential Revision: D45416244

Pulled By: tyao1

fbshipit-source-id: f92d66a1d6358c21e52a3b8003d06c662e2fc9fa
  • Loading branch information
gnoff authored and facebook-github-bot committed May 3, 2023
1 parent 76d01fa commit 7e6f6aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-native/Libraries/Renderer/REVISION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
efbd68511db472120afa0f3eba78a7462f25ed30
b12bea62d9cfd9a925f28cb2c93daeda3865a64e

0 comments on commit 7e6f6aa

Please sign in to comment.