From 323a2c610cd5ac5e524d5e22817708faee0a9a24 Mon Sep 17 00:00:00 2001 From: Suraj Date: Fri, 12 Jan 2024 16:55:27 +0530 Subject: [PATCH] fix: memoize inject sx --- packages/styled/react/src/styled.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/styled/react/src/styled.tsx b/packages/styled/react/src/styled.tsx index 689b82019c..411a8ca6e1 100644 --- a/packages/styled/react/src/styled.tsx +++ b/packages/styled/react/src/styled.tsx @@ -53,9 +53,6 @@ import { resolveComponentTheme } from './createConfig'; // Create a caching object let sxMemoizationCache: any = {}; -// Define a function to generate a unique key for the function arguments -const generateCacheKey = (args: any) => stableHash(args); - const styledSystemProps = { ...CSSPropertiesMap }; function isSubset(subset: any, set: any) {