Async_if_alternate_hoisting() — svelte Function Reference
Architecture documentation for the Async_if_alternate_hoisting() function in index.svelte.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD bde16458_e13e_ebef_9bfd_570367fc6551["Async_if_alternate_hoisting()"] dc351bc9_bf98_8ea3_fd55_2d95989f830a["index.svelte.js"] bde16458_e13e_ebef_9bfd_570367fc6551 -->|defined in| dc351bc9_bf98_8ea3_fd55_2d95989f830a style bde16458_e13e_ebef_9bfd_570367fc6551 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/tests/snapshot/samples/async-if-alternate-hoisting/_expected/server/index.svelte.js lines 4–16
export default function Async_if_alternate_hoisting($$renderer) {
$$renderer.child_block(async ($$renderer) => {
if ((await $.save(Promise.resolve(false)))()) {
$$renderer.push('<!--[-->');
$$renderer.push(async () => $.escape(await Promise.reject('no no no')));
} else {
$$renderer.push('<!--[!-->');
$$renderer.push(async () => $.escape(await Promise.resolve('yes yes yes')));
}
});
$$renderer.push(`<!--]-->`);
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does Async_if_alternate_hoisting() do?
Async_if_alternate_hoisting() is a function in the svelte codebase, defined in packages/svelte/tests/snapshot/samples/async-if-alternate-hoisting/_expected/server/index.svelte.js.
Where is Async_if_alternate_hoisting() defined?
Async_if_alternate_hoisting() is defined in packages/svelte/tests/snapshot/samples/async-if-alternate-hoisting/_expected/server/index.svelte.js at line 4.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free