MCPcopy
hub / github.com/vuejs/core / push

Function push

packages/server-renderer/src/render.ts:75–88  ·  view source on GitHub ↗
(item: SSRBufferItem)

Source from the content-addressed store, hash-verified

73 return buffer
74 },
75 push(item: SSRBufferItem): void {
76 const isStringItem = isString(item)
77 if (appendable && isStringItem) {
78 buffer[buffer.length - 1] += item as string
79 return
80 }
81 buffer.push(item)
82 appendable = isStringItem
83 if (isPromise(item) || (isArray(item) && item.hasAsync)) {
84 // promise, or child buffer with async, mark as async.
85 // this allows skipping unnecessary await ticks during unroll stage
86 buffer.hasAsync = true
87 }
88 },
89 }
90}
91

Callers 7

renderComponentSubTreeFunction · 0.70
renderVNodeFunction · 0.70
renderElementVNodeFunction · 0.70
ssrRenderTeleportFunction · 0.50
ssrRenderSuspenseFunction · 0.50
ssrRenderSlotFunction · 0.50
ssrRenderSlotInnerFunction · 0.50

Calls 3

isStringFunction · 0.90
isPromiseFunction · 0.90
pushMethod · 0.65

Tested by

no test coverage detected