View Full Version : What is the best way to clear component state?

21 May 2012, 6:34 AM
I want to clear the existing state for a component. This code works:


However, I noticed that Ext.state.Stateful#getStateId is marked as private. Why is this? Is there another way to clear a stateful component?

25 May 2012, 11:22 AM
I wonder why it is marked as private. Anyway, getStateId is a stable method that will stick around for the foreseeable future.