fix: Better logging and revie system of debug
This commit is contained in:
@@ -7,9 +7,8 @@ export function withPageTiming(pageName: string, Component: PageComponent) {
|
||||
const start = performance.now();
|
||||
const result = await Promise.resolve(Component(props));
|
||||
const duration = performance.now() - start;
|
||||
|
||||
// Log le temps de rendu
|
||||
await DebugService.logPageRender(pageName, duration);
|
||||
await DebugService.logPageRender(pageName + JSON.stringify(props.params), duration);
|
||||
|
||||
return result;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user