Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyJasonBennett committed Nov 4, 2023
1 parent 317d964 commit a56b909
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/fiber/src/core/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,7 @@ function Portal({
...rest,
} as RootState
},
// eslint-disable-next-line react-hooks/exhaustive-deps
[state],
)

Expand Down Expand Up @@ -555,10 +556,12 @@ function Portal({
unsub()
usePortalStore.destroy()
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [])

React.useEffect(() => {
usePortalStore.setState((injectState) => inject(previousRoot.getState(), injectState))
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [inject])

return (
Expand Down

0 comments on commit a56b909

Please sign in to comment.