mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-24 16:06:34 +00:00
fix(studio): flush in-flight http writes before disposing SDK session
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Co-authored-by: Miguel Ángel <miguel07alm@protonmail.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
Miguel Ángel
parent
85c7575e0a
commit
d75f15e78b
@@ -44,7 +44,8 @@ export function useSdkSession(
|
||||
|
||||
return () => {
|
||||
cancelled = true;
|
||||
comp?.dispose();
|
||||
const c = comp;
|
||||
if (c) void c.flush().finally(() => c.dispose());
|
||||
};
|
||||
}, [projectId, activeCompPath]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user