Skip to content

Commit

Permalink
fix: type error
Browse files Browse the repository at this point in the history
  • Loading branch information
tomzemp committed Sep 28, 2023
1 parent 03ce64f commit 9c17206
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions services/plugin/src/Plugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,13 @@ export const Plugin = ({
// since we do not know what props are passed, the dependency array has to be keys of whatever is standard prop
const memoizedPropsToPass = useMemo(
() => propsToPass,
// eslint-disable-next-line react-hooks/exhaustive-deps
/* eslint-disable react-hooks/exhaustive-deps */
[
...Object.keys(propsToPass)
.sort()
.map((k) => propsToPass[k]),
.map((k) => (propsToPass as any)[k]),
]
/* eslint-enable react-hooks/exhaustive-deps */
)

useEffect(() => {
Expand Down

0 comments on commit 9c17206

Please sign in to comment.