[Proposal] add clean up callback on ref directive #254
Moon-DaeSeung
started this conversation in
Proposals For Qwik
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What is it about?
Like React19,
What's the motivation for this proposal?
Problems you are trying to solve:
Goals you are trying to achieve:
Any other context or information you want to share:
Proposed Solution / Feature
What do you propose?
const refCallback = (el) => {
//called when mounted
return () => {
//called when unmount (detached)
}
}
Code examples
import { transition } from "@ssgoi/core"
Links / References
No response
Beta Was this translation helpful? Give feedback.
All reactions