This is a question that surged from this other one:
Best practice to have the same view and store multiple times in ExtJS 4
So in a scenario where stores are created in the initComponent function of a grid.
Should I override onDestroy of the grid to also destroy the store ?
Or these stores would be garbage collected because simply there are no references to them?
You can force the store to destroy itself by setting it's
autoDestroy
flag totrue
API-LinkSee this working demo for the effect of
autoDestroy
on a store that is used by a grid (close the grids in the demo)Additional info: