Home / Function/ AsyncErrorComponent() — astro Function Reference

AsyncErrorComponent() — astro Function Reference

Architecture documentation for the AsyncErrorComponent() function in async-components.jsx from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  7339a72c_1a69_6e3a_8080_52d1c8f4e32a["AsyncErrorComponent()"]
  f055b9af_141a_1d5d_191b_9a6d24e5ebf0["async-components.jsx"]
  7339a72c_1a69_6e3a_8080_52d1c8f4e32a -->|defined in| f055b9af_141a_1d5d_191b_9a6d24e5ebf0
  4a8ac17b_e994_ee09_bcb2_2cddcf98d0cd["sleep()"]
  7339a72c_1a69_6e3a_8080_52d1c8f4e32a -->|calls| 4a8ac17b_e994_ee09_bcb2_2cddcf98d0cd
  style 7339a72c_1a69_6e3a_8080_52d1c8f4e32a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/test/fixtures/solid-component/src/components/async-components.jsx lines 43–50

export function AsyncErrorComponent() {
	const [data] = createResource(async () => {
		await sleep(SLEEP_MS);
		throw new Error('Async error thrown!');
	});

	return <div>{data()}</div>;
}

Subdomains

Calls

Frequently Asked Questions

What does AsyncErrorComponent() do?
AsyncErrorComponent() is a function in the astro codebase, defined in packages/astro/test/fixtures/solid-component/src/components/async-components.jsx.
Where is AsyncErrorComponent() defined?
AsyncErrorComponent() is defined in packages/astro/test/fixtures/solid-component/src/components/async-components.jsx at line 43.
What does AsyncErrorComponent() call?
AsyncErrorComponent() calls 1 function(s): sleep.

Analyze Your Own Codebase

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

Try Supermodel Free