We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9256050 commit 975b7eaCopy full SHA for 975b7ea
packages/maps/src/components/marker-cluster/MapMarkerClusterView.tsx
@@ -27,8 +27,8 @@ const MapMarkerClusterView: React.FC<MapMarkerClusterViewProps> = ({
27
);
28
};
29
30
-export const DefaultMapMarkerClusterView = withTheme(
31
- ({ theme }: { theme: typeof DefaultTheme }) => {
+export const DefaultMapMarkerClusterView = React.memo(
+ withTheme(({ theme }: { theme: typeof DefaultTheme }) => {
32
return (
33
<MapMarkerClusterView
34
renderItem={({ markerCount }) => (
@@ -58,7 +58,7 @@ export const DefaultMapMarkerClusterView = withTheme(
58
)}
59
/>
60
61
- }
+ })
62
63
64
export default MapMarkerClusterView;
0 commit comments