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
As of now, we need to listend to the intersected event when using the Sentinel logic:
import{Sentinel}from'@studiometa/ui';classAppextendsBase{staticconfig={name: 'App',components: {
Sentinel
},};onSentinelIntersected(entries){if(entries[0].isIntersecting){// do something when the sentinel is visible}}}
It would be simpler to listen to dedicated events for both when the sentinel is intersecting and it is not.
As of now, we need to listend to the
intersected
event when using theSentinel
logic:It would be simpler to listen to dedicated events for both when the sentinel is intersecting and it is not.
The text was updated successfully, but these errors were encountered: