Skip to content

Commit

Permalink
🦊 reopen #79
Browse files Browse the repository at this point in the history
  • Loading branch information
hxf31891 committed Jan 31, 2024
1 parent bd8bdff commit f8f84f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down
5 changes: 1 addition & 4 deletions src/context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit f8f84f9

Please sign in to comment.