Replies: 2 comments
-
You can call the |
Beta Was this translation helpful? Give feedback.
0 replies
-
See #480 for a few different ideas |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, thanks for a very convenient hook!
I was wondering if it is possible to observe some other element? I.e. I have a component, but I would not like to assign the
ref
to the component I am returning, rather I want this component to observe and take action based on whether or not another component is intersecting the viewport. I figured I would find it e.g. usingdocument.getElementById
.Effectively, I am trying to detect whether or not a toolbar is active, as it has a
fixed
position at the top of the screen and is overlapping some of my content. Sadly, it's a piece of functionality integrated from a third party, so I don't have much control over it in my React tree/state management.Beta Was this translation helpful? Give feedback.
All reactions