Home / Function/ Skip_static_subtree() — svelte Function Reference

Skip_static_subtree() — svelte Function Reference

Architecture documentation for the Skip_static_subtree() function in index.svelte.js from the svelte codebase.

Entity Profile

Dependency Diagram

graph TD
  84e1cbb7_43be_253d_b833_e6994414e313["Skip_static_subtree()"]
  5ebadc8b_764f_05f4_7961_1818f0f5457f["index.svelte.js"]
  84e1cbb7_43be_253d_b833_e6994414e313 -->|defined in| 5ebadc8b_764f_05f4_7961_1818f0f5457f
  style 84e1cbb7_43be_253d_b833_e6994414e313 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/tests/snapshot/samples/skip-static-subtree/_expected/server/index.svelte.js lines 3–13

export default function Skip_static_subtree($$renderer, $$props) {
	let { title, content } = $$props;

	$$renderer.push(`<header><nav><a href="/">Home</a> <a href="/away">Away</a></nav></header> <main><h1>${$.escape(title)}</h1> <div class="static"><p>we don't need to traverse these nodes</p></div> <p>or</p> <p>these</p> <p>ones</p> ${$.html(content)} <p>these</p> <p>trailing</p> <p>nodes</p> <p>can</p> <p>be</p> <p>completely</p> <p>ignored</p></main> <cant-skip><custom-elements with="attributes"></custom-elements></cant-skip> <div><input autofocus=""/></div> <div><source muted=""/></div> <select>`);

	$$renderer.option({ value: 'a' }, ($$renderer) => {
		$$renderer.push(`a`);
	});

	$$renderer.push(`</select> <img src="..." alt="" loading="lazy"/> <div><img src="..." alt="" loading="lazy"/></div>`);
}

Domain

Subdomains

Frequently Asked Questions

What does Skip_static_subtree() do?
Skip_static_subtree() is a function in the svelte codebase, defined in packages/svelte/tests/snapshot/samples/skip-static-subtree/_expected/server/index.svelte.js.
Where is Skip_static_subtree() defined?
Skip_static_subtree() is defined in packages/svelte/tests/snapshot/samples/skip-static-subtree/_expected/server/index.svelte.js at line 3.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free