fix(jsx): preserve context when using await before html helper (#4662)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
* fix(jsx): preserve context when using await before html helper When an async component used await before returning html with children, the context was being popped synchronously in the finally block before the Promise resolved. This caused children to lose access to the context. The fix delays the pop() until the Promise resolves (or rejects), ensuring context remains available throughout the async component's execution. Fixes #4582 * refactor: use finally() for context cleanup per review * chore: remove package-lock.json ---------
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Trailers
- Co-authored-by: Kai Gritun <kai@kaigritun.com>
- Co-authored-by: Taku Amano <taku@taaas.jp>
Diff stats
2 files+44 added−2 removed
- tests:+38 added−0 removed
- other:+6 added−2 removed