MCPcopy
hub / github.com/cssinjs/jss / resetSheets

Function resetSheets

tests/utils.js:8–17  ·  view source on GitHub ↗
(sheets = defaultSheets)

Source from the content-addressed store, hash-verified

6}
7
8export function resetSheets(sheets = defaultSheets) {
9 return () => {
10 sheets.reset()
11
12 const styles = document.head.querySelectorAll('[data-jss]')
13 for (let i = 0; i < styles.length; i++) {
14 document.head.removeChild(styles[i])
15 }
16 }
17}
18
19export function removeWhitespace(str) {
20 return str.replace(/\s/g, '')

Callers 15

houdini.jsFile · 0.90
plugins.jsFile · 0.90
sheetsRegistry.jsFile · 0.90
rules.jsFile · 0.90
sheet.jsFile · 0.90
Jss.jsFile · 0.90
cloneStyle.jsFile · 0.90
plugins.jsFile · 0.90
SheetsManager.jsFile · 0.90
priority.jsFile · 0.90

Calls 1

resetMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…