refactor: improve object handling performance

This commit is contained in:
Carlos Valente
2026-03-14 07:34:02 +01:00
parent a7a78702b1
commit 24e325726c
4 changed files with 37 additions and 12 deletions
+1 -3
View File
@@ -139,9 +139,7 @@ export const setEventPlayback = {
pause: () => sendSocket('pause', undefined),
};
export const useTimer = createSelector((state: RuntimeStore) => ({
...state.timer,
}));
export const useTimer = createSelector((state: RuntimeStore) => state.timer);
export const useClock = createSelector((state: RuntimeStore) => state.clock);