qwik
qwik copied to clipboard
docs: added useOn hooks
What is it?
- [ ] Feature / enhancement
- [ ] Bug
- [x] Docs / tests
Description
This should solve #2282
Use cases and why
-
- One use case
-
- Another use case
Checklist:
- [x] My code follows the developer guidelines of this project
- [ ] I have performed a self-review of my own code
- [x] I have made corresponding changes to the documentation
- [ ] Added new tests to cover the fix / functionality
Run & review this pull request in StackBlitz Codeflow.
thanks @the-r3aper7 !
I think this should be part of the "Lifecycle" page no?
Maybe we should rename it in the menu to "Lifecycle (hooks)" to make it clearer
cool I will make the changes by tonight just let me know if we should have a different page for this named Lifecycle (hooks)
or add these things in Lifecycle
page?
thanks buddy!
on second thought - not sure it's related to lifecycle it looks like utils for adding event listeners in general
@manucorporat WDYT?
wondering if this is events
for me this are just events, in fact it's the same as doing: <div onClick
, but programatically, so it can be composed with hooks
so, where should we add this?
@shairez @manucorporat i have made the changes see it's matches the context of events page.
@manucorporat @shairez just tested the changes locally and they LGTM 👍 thanks a lot @the-r3aper7 🙏 hope we get this merged soon since it is a great addition for the docs imo.
thanks @the-r3aper7 and @zanettin ! merging