Skip to content

Commit

Permalink
fix: update dependency array
Browse files Browse the repository at this point in the history
  • Loading branch information
marek-mihok authored and mturoci committed Aug 3, 2023
1 parent 4eeb5f4 commit ea6a27e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ui/src/slider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ export const
React.useEffect(() => {
wave.args[m.name] = defaultValue
setVal(defaultValue)
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [value])
}, [defaultValue, m.name])

return (
<Fluent.Slider
Expand Down

0 comments on commit ea6a27e

Please sign in to comment.