From f8f84f91dbba01623d28af1c3755a53d05da111d Mon Sep 17 00:00:00 2001 From: Harry Date: Wed, 31 Jan 2024 06:48:05 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=A6=8A=20reopen=20#79?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/context.tsx | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 1e0e153..dc9fb00 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-best-gradient-color-picker", - "version": "3.0.3", + "version": "3.0.4", "description": "An easy to use color/gradient picker for React.js", "type": "module", "sideEffects": [ diff --git a/src/context.tsx b/src/context.tsx index d48fba2..662a28c 100644 --- a/src/context.tsx +++ b/src/context.tsx @@ -78,11 +78,8 @@ export default function PickerContextWrapper({ useEffect(() => { setTinyColor(tinycolor(currentColor)) - }, [currentColor]) - - useEffect(() => { setInternalHue(hue) - }, [hue]) + }, [currentColor, hue]) const createGradientStr = (newColors: GradientProps[]) => { const sorted = newColors.sort(