Skip to content

Commit

Permalink
Merge pull request #72 from DiamondLightSource/fix-profiler-callback
Browse files Browse the repository at this point in the history
Update profiler callback properties for react 18
  • Loading branch information
abigailalexander authored Jan 8, 2025
2 parents a25e906 + c45e2fc commit 379efc2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/misc/profilerCallback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,11 @@ const timings = new Timings();
*/
export function onRenderCallback(
id: string,
phase: "mount" | "update",
phase: "mount" | "update" | "nested-update",
actualDuration: number,
baseDuration: number,
startTime: number,
commitTime: number,
interactions: unknown
commitTime: number
): void {
if (PROFILE_ENABLED) {
const reconciliationTime = commitTime - startTime;
Expand Down

0 comments on commit 379efc2

Please sign in to comment.