Skip to content
Source
Sign inSign up
TanStack/router

fix: nonce #5522

Mergedschiller-manuel(GitHub profile, opens in a new tab)merged 2 commits intomain fromrefs/pull/5522/headmerged by schiller-manuel(GitHub profile, opens in a new tab)

Showing 6 changed files with 22 additions and 17 deletions (loading 3).

x
0 of 6 viewed, 6 left
2 additions and 9 deletionspackages/react-router/src/Asset.tsxModified
View file
@@ -34,11 +34,7 @@
/>
case 'script':
- return (
- <Script attrs={attrs} nonce={nonce}>
- {children}
- </Script>
- )
+ return <Script attrs={attrs}>{children}</Script>
default:
return null
@@ -47,11 +43,9 @@
function Script({
attrs,
children,
- nonce,
}: {
attrs?: ScriptAttrs
children?: string
- nonce?: string
}) {
const router = useRouter()
​