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 use_on_mount
and fix some typos
#1497
Conversation
Copying over some of the discussion from discord for context:
|
Yeah, I saw |
Completely agree, we should keep the component mount and unmount names similar. I like |
I updated it to be |
I added |
use_on_mount
hook. Works likeuse_effect
but with no dependencies.use_effect
.There's some discussion about if
use_on_mount
should instead beuse_on_created
oruse_on_component_mount
because of potential confusion with theonmounted
event. This is what I prefer, but I guess it's still up for discussion.