Last active
June 26, 2024 10:54
-
-
Save alexzhang1030/d1e09b080f1cbf671127bc82a04aaa49 to your computer and use it in GitHub Desktop.
Debug reactivity
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- Currnet: | |
--- pauseSheduleStack 是在 resetScheduling 中 console.log(pauseScheduleStack) | |
--- 看样子是因为引起了递归 | |
---pauseScheduleStack--- 0 | |
---pauseScheduleStack--- 0 | |
---transformLTR--- 20 | |
---pauseScheduleStack--- 0 | |
---pauseScheduleStack--- 0 | |
---pauseScheduleStack--- 1 | |
---transformLTR--- 60 | |
---pauseScheduleStack--- 1 | |
---pauseScheduleStack--- 1 | |
---transformLTR--- 40 | |
---pauseScheduleStack--- 1 | |
---pauseScheduleStack--- 1 | |
---transformLTR--- 26 | |
---pauseScheduleStack--- 1 | |
---pauseScheduleStack--- 1 | |
---transformLTR--- 16 | |
---pauseScheduleStack--- 1 | |
---pauseScheduleStack--- 1 | |
---transformLTR--- 10 | |
---pauseScheduleStack--- 1 | |
---pauseScheduleStack--- 1 | |
---transformLTR--- 6 | |
---pauseScheduleStack--- 1 | |
---pauseScheduleStack--- 1 | |
---transformLTR--- 4 | |
---pauseScheduleStack--- 1 | |
---pauseScheduleStack--- 1 | |
---transformLTR--- 2 | |
---pauseScheduleStack--- 1 | |
---pauseScheduleStack--- 1 | |
---transformLTR--- 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function resetScheduling() { | |
console.log('---pauseScheduleStack---', pauseScheduleStack) | |
while (!pauseScheduleStack && queueEffectSchedulers.length) { | |
queueEffectSchedulers.shift()!() | |
} | |
pauseScheduleStack-- | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- 旧的看起来就没有这个问题 | |
---pasueScheduleStack--- 1 | |
---pasueScheduleStack--- 1 | |
---transformLTR--- 20 | |
---pasueScheduleStack--- 1 | |
---pasueScheduleStack--- 1 | |
---pasueScheduleStack--- 1 | |
---transformLTR--- 60 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function resetScheduling() { | |
console.log('---pasueScheduleStack---', pauseScheduleStack) | |
pauseScheduleStack-- | |
while (!pauseScheduleStack && queueEffectSchedulers.length) { | |
queueEffectSchedulers.shift()!() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment