You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Check if updating to the latest Preact version resolves the issue
Describe the bug
Preact's Suspense boundary does not maintain state synchronization or properly handle Promise resolution compared to React. When a component throws a Promise within a Suspense boundary:
React smoothly transitions from fallback to resolved content and continues propagating state updates (e.g., active state changes are logged).
Preact stops propagating state updates (e.g., active logs disappear after the first throw), and fails to transition back to resolved content.
This discrepancy prevents Preact from supporting dynamic UI transitions (e.g., loading states) that rely on Suspense with thrown Promises.
Describe the bug
Preact's Suspense boundary does not maintain state synchronization or properly handle Promise resolution compared to React. When a component throws a Promise within a Suspense boundary:
React smoothly transitions from fallback to resolved content and continues propagating state updates (e.g., active state changes are logged).
Preact stops propagating state updates (e.g., active logs disappear after the first throw), and fails to transition back to resolved content.
This discrepancy prevents Preact from supporting dynamic UI transitions (e.g., loading states) that rely on Suspense with thrown Promises.
To Reproduce
Expected Behavior:
Like React, Preact should:
Actual Behavior:
Preact:
The text was updated successfully, but these errors were encountered: