Skip to main content

Tracking Element Visibility

This could be used for lazy loading (perhaps on the Node Tree View)

The react docs have an article on useEffect has an example in the Examples of connecting to an external system section that has a code sample of how to detect if an element in on screen. I image being able to use this if we needed roll our own lazy loading solution for that would not require that we have a specific height, or if we wanted to have lists nested in other lists (like in the tree view for example where each node has it's own children that we want to load in batches).

image.png