Transitions the persistent local state of the component to the resource manager.
It can be useful in two cases.
- When externally monitoring the state of an object
- When duplicating data of the same object
In the case of 2, it is usefully used in hmr, etc.
This way, the component only has behavior and context.
Everything else becomes the concept of saving in the resource manager.
check list
[ ] move hooks store to ResourceManager