Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/adobe/react-spectrum
/ resetNonceCache
Function
resetNonceCache
packages/react-aria/src/utils/getNonce.ts:19–21 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
17
18
/** Reset the cached nonce value. Exported
for
testing only. */
19
export
function
resetNonceCache(): void {
20
nonceCache =
new
WeakMap();
21
}
22
23
/**
24
* Returns the CSP nonce,
if
configured via a `<meta property=
"csp-nonce"
>` tag or
Callers
1
getNonce.test.js
File · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected