Skip to content

Commit

Permalink
fix: dependency array
Browse files Browse the repository at this point in the history
  • Loading branch information
tomzemp committed Sep 12, 2023
1 parent 74a567e commit 03ce64f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion services/plugin/src/Plugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@ export const Plugin = ({
const memoizedPropsToPass = useMemo(
() => propsToPass,
// eslint-disable-next-line react-hooks/exhaustive-deps
[...Object.keys(propsToPass)]
[
...Object.keys(propsToPass)
.sort()
.map((k) => propsToPass[k]),
]
)

useEffect(() => {
Expand Down

0 comments on commit 03ce64f

Please sign in to comment.