-
Notifications
You must be signed in to change notification settings - Fork 49
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
[IMP] Selection: convert grid drag-n-drop into a hook #5919
base: master
Are you sure you want to change the base?
Conversation
|
||
const cleanUp = () => { | ||
cleanUpFns.forEach((fn) => fn()); | ||
cleanUpFns = [() => clearTimeout(timeOutId), () => (timeOutId = null)]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we coul call it by hand and not repush each time
Missing a test with the improved behaviour that clears up the event listeners once the caller was unmounted |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops
|
||
let cleanUpFns: (() => void)[] = [() => clearTimeout(timeOutId), () => (timeOutId = null)]; | ||
|
||
const cleanUp = () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to test that the callbacks are cleanup on unmount now ?
6fd6118
to
fbdd6cd
Compare
fbdd6cd
to
c58da86
Compare
Task: 3582335
c58da86
to
756e549
Compare
Task: 3582335
Description:
description of this task, what is implemented and why it is implemented that way.
Task: TASK_ID
review checklist