diff --git a/components/theme/internal.tsx b/components/theme/internal.tsx index f79a06e245..7c04b5f170 100644 --- a/components/theme/internal.tsx +++ b/components/theme/internal.tsx @@ -55,11 +55,6 @@ export const DesignTokenContext = React.createContext<{ }>(defaultConfig); // ================================== Hook ================================== -// In dev env, we refresh salt per hour to avoid user use this -// Note: Do not modify this to real time update which will make debug harder -const saltPrefix = - process.env.NODE_ENV === 'production' ? version : `${version}-${new Date().getHours()}`; - export function useToken(): [Theme, GlobalToken, string] { const { token: rootDesignToken, @@ -68,7 +63,7 @@ export function useToken(): [Theme, GlobalToken, string] { components, } = React.useContext(DesignTokenContext); - const salt = `${saltPrefix}-${hashed || ''}`; + const salt = `${version}-${hashed || ''}`; const mergedTheme = theme || defaultTheme;