P
P
pandaa2020-06-05 14:08:39
React
pandaa, 2020-06-05 14:08:39

Let's say we import a component, but we only use it on condition. The question is, is it stored in memory? Does such a component get into the GC or DCE?

In order for an object to be deleted, the GC must ensure that the object is no longer used in the program. But all the components that I have in the application are used in one way or another, in conditions, routes, etc. etc. It turns out that in memory are all the objects that are in the program in principle, and which can be reached through other objects?

That is, even if the user does nothing, he has the entire application in memory? Or I don't understand something about GC?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
pandaa, 2020-06-05
@pandaa

Code split

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question