Skip to content

Commit

Permalink
fix: remove eslint disable and fix useEffect dep list
Browse files Browse the repository at this point in the history
  • Loading branch information
edoardo committed Aug 9, 2024
1 parent d76ded1 commit 1a5c9ef
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,7 @@ const CacheableSectionWrapper = ({ id, children, isParentCached }) => {
// -- a back-up to imperative `removeCachedData`
remove()
}

// NB: Adding `startRecording` to dependencies causes
// an infinite recording loop as-is (probably need to memoize it)
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [isParentCached])
}, [isCached, isParentCached, remove, startRecording])

return (
<CacheableSection id={id} loadingMask={<LoadingMask />}>
Expand Down

0 comments on commit 1a5c9ef

Please sign in to comment.