Skip to content

Commit

Permalink
fix: remove memo predicate
Browse files Browse the repository at this point in the history
  • Loading branch information
jvllmr committed Oct 21, 2024
1 parent 5bf5046 commit 7c08ebe
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
4 changes: 0 additions & 4 deletions src/SchedulerBody/NowMarker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@ export const NowMarkerController = React.memo(
if (!nowLeft) return null;
return <Marker left={nowLeft} now={now} />;
},
(prev, next) =>
prev.markerComponent == next.markerComponent &&
prev.distanceCalculator == next.distanceCalculator &&
prev.tz == next.tz,
);

export interface NowMarkerProps {
Expand Down
11 changes: 0 additions & 11 deletions src/SchedulerBody/SchedulerEntry/SchedulerEntry.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { MantineStyleProps, Paper, useMantineTheme } from "@mantine/core";
import deepEqual from "fast-deep-equal";
import React from "react";
export interface SchedulerEntryProps<TData, TResource> {
top: NonNullable<MantineStyleProps["top"]>;
Expand Down Expand Up @@ -49,14 +48,4 @@ export const SchedulerEntryRenderer = React.memo(
<TData, TResource>(props: SchedulerEntryRendererProps<TData, TResource>) => (
<SchedulerEntryRenderer_ {...props} />
),
(prev, next) => {
return (
prev.display == next.display &&
prev.left === next.left &&
prev.right === next.right &&
prev.CustomSchedulerEntry == next.CustomSchedulerEntry &&
deepEqual(prev.resource, next.resource) &&
deepEqual(prev.data, next.data)
);
},
);

0 comments on commit 7c08ebe

Please sign in to comment.