removed @blocknote/core from dependencies (#6580)
Fixes #6564 & #6561 @FelixMalfait Removed @blocknote/core from dependencies https://github.com/user-attachments/assets/ef6acfff-2945-4062-a35c-21dd108a4345 --------- Co-authored-by: Félix Malfait <felix.malfait@gmail.com>
This commit is contained in:
@ -1,5 +1,4 @@
|
||||
import { Profiler } from 'react';
|
||||
import { Interaction } from 'scheduler/tracing';
|
||||
import { Profiler, ProfilerOnRenderCallback } from 'react';
|
||||
|
||||
import { logDebug } from '~/utils/logDebug';
|
||||
|
||||
@ -9,14 +8,13 @@ type TimingProfilerProps = {
|
||||
};
|
||||
|
||||
export const TimingProfiler = ({ id, children }: TimingProfilerProps) => {
|
||||
const handleRender = (
|
||||
const handleRender: ProfilerOnRenderCallback = (
|
||||
id: string,
|
||||
phase: 'mount' | 'update' | 'nested-update',
|
||||
actualDuration: number,
|
||||
baseDuration: number,
|
||||
startTime: number,
|
||||
commitTime: number,
|
||||
interactions: Set<Interaction>,
|
||||
) => {
|
||||
logDebug(
|
||||
'TimingProfiler',
|
||||
@ -28,7 +26,6 @@ export const TimingProfiler = ({ id, children }: TimingProfilerProps) => {
|
||||
baseDuration,
|
||||
startTime,
|
||||
commitTime,
|
||||
interactions,
|
||||
},
|
||||
null,
|
||||
2,
|
||||
|
||||
Reference in New Issue
Block a user