Are ReactiveDicts and Local Collections instances garbage collected?


#1

Is there any recommendation against creating temporary ReactiveDicts and Local Collections? Are they garbage collected when they get out of scope? What are the costs of keeping a bunch of (mostly empty) ReactiveDicts and Local Collections during the whole lifecycle of the App vs letting them out of scope as they are not needed anymore?

I’m experimenting with code organisation where for a given route the App instantiates one (or more) object I’m calling Store. The Store holds the state of (part of) the screen, like selected items, old and new edited values, open and closed regions, etc. Each Store instantiates a few ReactiveDicts and one Local Collection. I’m worried this may be a problem for a large App with lots of routes. Thanks for any advise.


Storing API/Method result in temporary local collection? Using komposer