This link can be used to reproduce the scene: https://codesandbox.io/p/sandbox/isintersecting-is-reset-2xgfm3?file=%2Fsrc%2Findex.tsx%3A31%2C18
I updated the state of the parent component through the handleSetNum function in the child component.
Print the value of entry?.isIntersecting when scrolling, and its value first changes to true and then to false. I don't know why.

But if I don't use handleSetNum function everything is normal - one true.
