Skip to content

Commit 5b75bfc

Browse files
fix nonce
1 parent 1ff0508 commit 5b75bfc

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

packages/react-router/src/headContentUtils.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,11 @@ export const useTags = () => {
163163
.filter(Boolean) as Array<RouterManagedTag>
164164
).map(({ children, ...attrs }) => ({
165165
tag: 'style',
166-
attrs,
166+
attrs: {
167+
...attrs,
168+
nonce,
169+
},
167170
children,
168-
nonce,
169171
})),
170172
structuralSharing: true as any,
171173
})

0 commit comments

Comments
 (0)