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

Function onProcessStyle

packages/jss-plugin-compose/src/index.js:59–65  ·  view source on GitHub ↗
(style, rule)

Source from the content-addressed store, hash-verified

57 */
58export default function jssCompose() {
59 function onProcessStyle(style, rule) {
60 if (!('composes' in style)) return style
61 registerClass(rule, style.composes)
62 // Remove composes property to prevent infinite loop.
63 delete style.composes
64 return style
65 }
66 return {onProcessStyle}
67}

Callers

nothing calls this directly

Calls 1

registerClassFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…