Closed oxedom closed 1 year ago
To ensure the demo video element onPlay ClientRender does not refire when minimized for a while, I have made a cleaner bug fix by adding an if statement to check if the number of selected regions of interest (rois) is greater than 0. If the condition is met, the function will set auto detect to true.
Problem
Auto detecting state is set to true when tab is closed.
Solution
Something likely to do with the lifecycle and a useEffect side effect setting the state to true.