Allow passing properties to <StreamTransfer />
#14502
fernandojbf
started this conversation in
Proposals
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
At the moment, React Router allows us to pass properties that are added to the generated
<script>elements via the<Scripts {...props} />component.However, the
<StreamTransfer />component also injects<script>tags into the page, but it does not follow or expose the same props API. This removes the opportunity to customize or extend those scripts when needed for specific use cases.Example Use Case
Currently, Googlebot is crawling our
<StreamTransfer />scripts since they contain links inside. We have no way to prevent or control that behavior because there’s no API to add attributes likedata-nosnippetor similar to those<script>tags.It would be great if
<StreamTransfer />extend<Scripts />props, or maybe viareact-router.config.ts.Beta Was this translation helpful? Give feedback.
All reactions