MCPcopy
hub / github.com/QwikDev/qwik / serializeClassWithHost

Function serializeClassWithHost

packages/qwik/src/core/render/execute-component.ts:139–147  ·  view source on GitHub ↗
(
  obj: ClassList,
  hostCtx: QContext | undefined | null
)

Source from the content-addressed store, hash-verified

137};
138
139export const serializeClassWithHost = (
140 obj: ClassList,
141 hostCtx: QContext | undefined | null
142): string => {
143 if (hostCtx?.$scopeIds$?.length) {
144 return hostCtx.$scopeIds$.join(' ') + ' ' + serializeClass(obj);
145 }
146 return serializeClass(obj);
147};
148
149export const serializeClass = (obj: ClassList): string => {
150 if (!obj) {

Callers 4

diffVnodeFunction · 0.90
setPropertiesFunction · 0.90
executeSignalOperationFunction · 0.90

Calls 2

serializeClassFunction · 0.85
joinMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…