-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Preserving component's state #11
Comments
I think that inputs, outputs and methods should not be transferred from the old component to the new one. So this leaves only the internal state of the component and I am not sure if we should persist this. Because it could lead to a state in the component that cannot be recreated by using either the old or the new implementation. Also when the refactoring is done the overall state of the application stays the same and only the subtrees of components that depend on the changed component will loose their state. |
We can take a look at preserving the state from one more perspective - we need to keep the element injectors which are instantiated for the individual directives. AFAIK they are stored in the |
@frederikschubert last night I spend a few hours preserving the instantiated dependencies for static injectors. I have some progress there, next goal is to refactor, provide dynamic injector support + component state preservation. |
No description provided.
The text was updated successfully, but these errors were encountered: