Skip to content

RFC: Async Boundaries <lwc:suspense>#94

Open
AllanOricil wants to merge 3 commits intosalesforce:masterfrom
AllanOricil:allanoricil/async-boundaries
Open

RFC: Async Boundaries <lwc:suspense>#94
AllanOricil wants to merge 3 commits intosalesforce:masterfrom
AllanOricil:allanoricil/async-boundaries

Conversation

@AllanOricil
Copy link

@AllanOricil AllanOricil commented Jan 12, 2026

Rendered

Similar to Vue 3 and React's built-in components, but with features I wish they had implemented, plus a workaround for Vue's implicit async setup() suspension behavior.

Svelte and Solid also have a built in suspense component.

Add automatic suspense context property available on all LWC components,
allowing them to detect and inspect their nearest suspense boundary state.
Components can use this.suspense to access isSuspended, hasError,
pendingCount, and hasTimedOut properties for conditional behavior and
debugging.
@wjhsf
Copy link
Contributor

wjhsf commented Jan 14, 2026

This is an interesting idea. We will discuss it internally next week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants