Closed syi0808 closed 14 hours ago
Before
After
Add crossOrigin in argument to ReactDOM.preload options from Script component props.
Because we expect the crossOrigin props handed over to Script component to also get into the preload link tag.
Add crossOrigin argument to preload function in Script tag. value from restProps.crossOrigin.
Fixes #65879
Allow CI Workflow Run
Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer
Commit: 83d55ed42a3198d036e97802ff245c34ef87168b
I also added test for changes.
screenshot
Before
After
What?
Add crossOrigin in argument to ReactDOM.preload options from Script component props.
Why?
Because we expect the crossOrigin props handed over to Script component to also get into the preload link tag.
How?
Add crossOrigin argument to preload function in Script tag. value from restProps.crossOrigin.
Fixes #65879