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
Add Mounting utility component #43
Conversation
Older discussion about this: #41 |
Personally I like the idea. But Idk if it fits the 'powerplug' concept of state containers. It's don't have any state. |
@renatorib Well, it has. :) |
@renatorib From mount to unmount it passes state. |
Not exactly. In your example you use |
Okay. Let's leave it for further discussions. I'll try to fit the idea to powerplug. |
@renatorib I found some solution. We can extend mount/unmount callbacks with refs which are rely on them. |
And it's stateful. However we still need another component like |
I was thinking yesterday and I have some ideas in my head. When I mature the idea I'm going to create a discussion issue here. Meanwhile I'll leave this PR open. |
I don't support this idea anymore. It's better to prefer lifecycle with class. Lifecycles in opposite to state containers do not introduce any functionality and may lead to many learning issues. Also 16.4 will introduce new stateful component api which will be in a way more elegant. |
No description provided.