[FEATURE] Re-register use in view hook on component re-render
Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
I have a component that returns null if a state variable is true, and then it returns html/css/markup if the variable is false. If the animation has not happened already the intersection observer from useInView will not be re-registered on the state change. How can I change this behaviour and register the useInView hook again perhaps in a useEffect when my component re-renders.
This functionality is not clear from the docs.
Describe the solution you'd like A clear and concise description of what you want to happen.
I'd like to be able to re-trigger useInView inside a useEffect so I can reregister the intersection observer. This currently does not seem like support behaviour from the docs.