MCPcopy
hub / github.com/Khan/aphrodite / flushToStyleTag

Function flushToStyleTag

src/inject.js:233–238  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

231};
232
233export const flushToStyleTag = () => {
234 const cssRules = flushToArray();
235 if (cssRules.length > 0) {
236 injectStyleTag(cssRules);
237 }
238};
239
240export const getRenderedClassNames = () /* : string[] */ => {
241 return Object.keys(alreadyInjected);

Callers 2

inject_test.jsFile · 0.90
aphrodite_test.tsFile · 0.85

Calls 2

flushToArrayFunction · 0.85
injectStyleTagFunction · 0.85

Tested by

no test coverage detected