About the problem of component out of hiding

problem description

now there is a requirement to make a floating layer for the form, on which there are a large number of custom components.
in the extreme, every cell has a component.
has a visual area, and the floating layer can move with the scroll bar, which means that there is always a part beyond the visual area.

the environmental background of the problems and what methods you have tried

  1. remove components that are out of the visual area, wait for the area to enter the visual area, and then add.
  2. keeps all components all the time.

what result do you expect? What is the error message actually seen?

what my colleague means is that too many component mounts affect performance.
I think that too many dom operations affect performance by adding or subtracting components frequently.

what do you think?

Apr.09,2021

both statements are reasonable =
I think this is a quantitative problem. If you want to solve it, you should test the browser according to the average number of components and the extreme number of components.

Menu