-
Notifications
You must be signed in to change notification settings - Fork 59
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
[WIP] Reduces lifecycle for environments with no dom #326
[WIP] Reduces lifecycle for environments with no dom #326
Conversation
Hey @pragmaticivan, Maybe to reduce the amount of calls to |
hey @Robert-Frampton just sent some changes applying as you've suggested |
Changing that to |
That's a good question. I wonder why React does it that way. It seems that there might be just as much of a chance of things breaking by firing |
Was also thinking about leaving Wonder if you guys have any feedback on that Topic: cc @mthadley @bryceosterhaus |
@pragmaticivan I think that it's generally a good idea to do any DOM related work inside of |
I agree, but wonder if that's not a good time to create a "Best Practice Guide" for developing metal components where it should be performed on SSR and client, and maybe assume that they won't use |
Even though I like the concept of simplifying server-side rendering by avoiding manual checks by the developer, lifecycle changes can mess things we can't predict. If you guys decide in moving forward discuss carefully the effects. |
I actually find this PR quite confusing. If I'm reading it correctly, the component lifecycle methods are being executed, but we won't be dispatching the events or will be exiting those methods quick. If we wanted to do this, I think it should be implemented somewhere else, so the methods on |
All good, I will close this PR and will do some research. Thanks for the feedback o/ |
closes #318