MCPcopy Create free account
hub / github.com/Packstack-Tech/packstack / isEqual

Function isEqual

frontend/src/app/components/InventorySidebar/index.tsx:127–131  ·  view source on GitHub ↗
(prev: SidebarProps, next: SidebarProps)

Source from the content-addressed store, hash-verified

125};
126
127function isEqual(prev: SidebarProps, next: SidebarProps) {
128 const { currentItems: prevItems, items: prevInventory } = prev;
129 const { currentItems: nextItems, items: nextInventory } = next;
130 return prevItems.length === nextItems.length && prevInventory.length === nextInventory.length;
131}
132
133export default React.memo(InventorySidebar, isEqual);

Callers 1

handleSaveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected