MCPcopy
hub / github.com/sveltejs/svelte / push

Method push

packages/svelte/src/internal/server/renderer.js:427–433  ·  view source on GitHub ↗

* @param {string | (() => Promise<string>)} content

(content)

Source from the content-addressed store, hash-verified

425 * @param {string | (() => Promise<string>)} content
426 */
427 push(content) {
428 if (typeof content === 'function') {
429 this.child(async (renderer) => renderer.push(await content()));
430 } else {
431 this.#out.push(content);
432 }
433 }
434
435 /**
436 * @param {() => void} fn

Callers 15

selectMethod · 0.95
#open_renderMethod · 0.95
onMountFunction · 0.80
beforeUpdateFunction · 0.80
afterUpdateFunction · 0.80
date.test.tsFile · 0.80
map.test.tsFile · 0.80
set.test.tsFile · 0.80
url.test.tsFile · 0.80
$onMethod · 0.80
handlersFunction · 0.80

Calls 1

childMethod · 0.95

Tested by 15

capture_warningsFunction · 0.64
componentFunction · 0.64
componentFunction · 0.64
failed_snippetFunction · 0.64
testFunction · 0.64
testFunction · 0.64
testFunction · 0.64
testFunction · 0.64
testFunction · 0.64
testFunction · 0.64
testFunction · 0.64
testFunction · 0.64