@@ -295,15 +295,12 @@ export function Links(): React.JSX.Element {
295295 * @mode framework
296296 * @param props Props
297297 * @param props.page The absolute path of the page to prefetch, e.g. `/absolute/path`.
298- * @param props.dataLinkProps Additional props to pass to the
298+ * @param props.linkProps Additional props to spread onto the
299299 * [`<link>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/link)
300- * tag , such as `crossOrigin`, `integrity`, `rel`, etc.
300+ * tags , such as `crossOrigin`, `integrity`, `rel`, etc.
301301 * @returns A collection of React elements for `<link>` tags
302302 */
303- export function PrefetchPageLinks ( {
304- page,
305- ...dataLinkProps
306- } : PageLinkDescriptor ) {
303+ export function PrefetchPageLinks ( { page, ...linkProps } : PageLinkDescriptor ) {
307304 let { router } = useDataRouterContext ( ) ;
308305 let matches = React . useMemo (
309306 ( ) => matchRoutes ( router . routes , page , router . basename ) ,
@@ -314,9 +311,7 @@ export function PrefetchPageLinks({
314311 return null ;
315312 }
316313
317- return (
318- < PrefetchPageLinksImpl page = { page } matches = { matches } { ...dataLinkProps } />
319- ) ;
314+ return < PrefetchPageLinksImpl page = { page } matches = { matches } { ...linkProps } /> ;
320315}
321316
322317function useKeyedPrefetchLinks ( matches : AgnosticDataRouteMatch [ ] ) {
@@ -685,12 +680,12 @@ export type ScriptsProps = Omit<
685680 * @public
686681 * @category Components
687682 * @mode framework
688- * @param props Props for the
683+ * @param scriptProps Additional props to spread onto the
689684 * [`<script>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/script)
690685 * tag, such as `crossOrigin`, `nonce`, etc.
691686 * @returns A collection of React elements for `<script>` tags
692687 */
693- export function Scripts ( props : ScriptsProps ) : React . JSX . Element | null {
688+ export function Scripts ( scriptProps : ScriptsProps ) : React . JSX . Element | null {
694689 let {
695690 manifest,
696691 serverHandoffString,
@@ -822,13 +817,13 @@ import(${JSON.stringify(manifest.entry.module)});`;
822817 return (
823818 < >
824819 < script
825- { ...props }
820+ { ...scriptProps }
826821 suppressHydrationWarning
827822 dangerouslySetInnerHTML = { createHtml ( contextScript ) }
828823 type = { undefined }
829824 />
830825 < script
831- { ...props }
826+ { ...scriptProps }
832827 suppressHydrationWarning
833828 dangerouslySetInnerHTML = { createHtml ( routeModulesScript ) }
834829 type = "module"
@@ -878,15 +873,15 @@ import(${JSON.stringify(manifest.entry.module)});`;
878873 < link
879874 rel = "modulepreload"
880875 href = { manifest . url }
881- crossOrigin = { props . crossOrigin }
876+ crossOrigin = { scriptProps . crossOrigin }
882877 integrity = { sri [ manifest . url ] }
883878 suppressHydrationWarning
884879 />
885880 ) : null }
886881 < link
887882 rel = "modulepreload"
888883 href = { manifest . entry . module }
889- crossOrigin = { props . crossOrigin }
884+ crossOrigin = { scriptProps . crossOrigin }
890885 integrity = { sri [ manifest . entry . module ] }
891886 suppressHydrationWarning
892887 />
@@ -895,7 +890,7 @@ import(${JSON.stringify(manifest.entry.module)});`;
895890 key = { path }
896891 rel = "modulepreload"
897892 href = { path }
898- crossOrigin = { props . crossOrigin }
893+ crossOrigin = { scriptProps . crossOrigin }
899894 integrity = { sri [ path ] }
900895 suppressHydrationWarning
901896 />
0 commit comments