Values are constantly added to Cona._c but are never expired. The longer one uses Cona, the more memory is consumed. You can replicate this with the playground by simply checking the used memory via performance.memory and then go into and out of an album repeatedly. Viewing performance.memory will show an increase in memory. The more you toggle back and forth to the albums and back to the index, the more memory is consumed.
I attempted to change this to use an instance-level this._c but I don't understand the code well enough to make that work.
Values are constantly added to
Cona._cbut are never expired. The longer one uses Cona, the more memory is consumed. You can replicate this with the playground by simply checking the used memory viaperformance.memoryand then go into and out of an album repeatedly. Viewingperformance.memorywill show an increase in memory. The more you toggle back and forth to the albums and back to the index, the more memory is consumed.I attempted to change this to use an instance-level
this._cbut I don't understand the code well enough to make that work.