Add more lifecycle hooks plz! #1175
VeederLicht
started this conversation in
Ideas
Replies: 1 comment 3 replies
-
The way Solid works, Solid component simply don't need any other life cycle hooks because there aren't any other life cycles. If you can explain with a piece of code what you were trying to do in Mithril, and couldn't in Solid, we can help you write it properly in Solid. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey people,
I'm getting up to speed with this library/framework. I like it. There is something i would like to see added to the API though: more lifecycle hooks. I'm coming from MithrilJS where hooks like onBeforeRemove, onBeforeMount etc can be used. These are very handy for custom animations and other related actions before the component is being removed, or is being added to the DOM.
I am aware there has been an 'issue' (#39) discussing animations already, but:
Ideally they would be methods with a timeout-parameter or, even better, methods that halt the execution of the mounting/unmounting requiring the user function to end with a 'continue()' call when they're done.
Beta Was this translation helpful? Give feedback.
All reactions