mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-23 19:46:11 +00:00
* fix(studio): reconcile external edits before reload * fix(ci): retry transient workspace installs Make external reload retry behavior honest and isolate reload listeners. Remove the dead SDK timestamp parameter.
16 lines
547 B
TypeScript
16 lines
547 B
TypeScript
import { useEffect } from "react";
|
|
import { hasFiredSessionStart, markSessionStartFired } from "../telemetry/config";
|
|
import { trackStudioSessionStart } from "../telemetry/events";
|
|
|
|
export function useStudioSessionStart(
|
|
projectId: string | null,
|
|
resolving: boolean,
|
|
waitingForServer: boolean,
|
|
): void {
|
|
useEffect(() => {
|
|
if (resolving || waitingForServer || hasFiredSessionStart()) return;
|
|
markSessionStartFired();
|
|
trackStudioSessionStart({ has_project: projectId != null });
|
|
}, [projectId, resolving, waitingForServer]);
|
|
}
|