From c27f644f693c220f4a17c247fb3f969af63f87bb Mon Sep 17 00:00:00 2001 From: philippe Date: Tue, 25 Mar 2025 11:41:04 -0400 Subject: [PATCH] Try without reduce --- dash/dash-renderer/src/wrapper/selectors.ts | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/dash/dash-renderer/src/wrapper/selectors.ts b/dash/dash-renderer/src/wrapper/selectors.ts index 293af71264..108204e130 100644 --- a/dash/dash-renderer/src/wrapper/selectors.ts +++ b/dash/dash-renderer/src/wrapper/selectors.ts @@ -12,13 +12,14 @@ export const selectDashProps = // Then it can be easily compared without having to compare the props. const strPath = stringifyPath(componentPath); - const h = Object.entries(state.layoutHashes).reduce( - (acc, [updatedPath, pathHash]) => - strPath.startsWith(updatedPath) - ? (pathHash as number) + acc - : acc, - 0 - ); + // const h = Object.entries(state.layoutHashes).reduce( + // (acc, [updatedPath, pathHash]) => + // strPath.startsWith(updatedPath) + // ? (pathHash as number) + acc + // : acc, + // 0 + // ); + const h = state.layoutHashes[strPath]; return [c, c.props, h]; };