You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use an Intersection Observer to determine whether a video is in view and to render it. The problem arises when the video leaves all OutPortals: it maintains the props that it received before going back 'into hiding', so inView prop never gets set to false and
Is there a way to force the detached component to revert back to default props whenever it is hidden? Or some sort of workaround? I'm just looking for any way for the component to have state that triggers when it is detached from the DOM.
The text was updated successfully, but these errors were encountered:
Hi, can you share a repro of the issue so I can see it for myself?
I'm not totally clear, but it sounds like this is a bug, since leaving the OutPortal should indeed reset props to their original state. A repro would be very helpful to confirm that. If you've already found the cause, a PR to fix this would also be very welcome!
We use an Intersection Observer to determine whether a video is in view and to render it. The problem arises when the video leaves all OutPortals: it maintains the props that it received before going back 'into hiding', so
inView
prop never gets set to false andIs there a way to force the detached component to revert back to default props whenever it is hidden? Or some sort of workaround? I'm just looking for any way for the component to have state that triggers when it is detached from the DOM.
The text was updated successfully, but these errors were encountered: