Skip to content

Commit 379efc2

Browse files
Merge pull request #72 from DiamondLightSource/fix-profiler-callback
Update profiler callback properties for react 18
2 parents a25e906 + c45e2fc commit 379efc2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/misc/profilerCallback.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,11 @@ const timings = new Timings();
6464
*/
6565
export function onRenderCallback(
6666
id: string,
67-
phase: "mount" | "update",
67+
phase: "mount" | "update" | "nested-update",
6868
actualDuration: number,
6969
baseDuration: number,
7070
startTime: number,
71-
commitTime: number,
72-
interactions: unknown
71+
commitTime: number
7372
): void {
7473
if (PROFILE_ENABLED) {
7574
const reconciliationTime = commitTime - startTime;

0 commit comments

Comments
 (0)