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:28–30 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
26
27
/** Reset the cached nonce value. Exported
for
testing only. */
28
export
function
resetNonceCache(): void {
29
nonceCache =
new
WeakMap();
30
}
31
32
/**
33
* 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