-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
activePostFlushCbs is null #1947
Comments
I think you write a wrong way. |
I tracked the issue and this test case can reproduce it: test('flushPostFlushCbs', async () => {
let count = 0
const mounted1 = () => {
renderJob(mounted2)
}
const mounted2 = () => {
count++
}
const renderJob = (hook: Function) => {
queuePostFlushCb(hook)
flushPostFlushCbs()
}
renderJob(mounted1)
await nextTick()
expect(count).toBe(1)
}) I’m not sure if this is a valid use case, if it’s valid, maybe we shouldn’t just set the value of |
Face the same problem. Some use cases like Tiptap. |
Note 53ed991 is a partial commit (I forgot to save the file when committing) Proper fix commit is 36fa42a |
Version
3.0.0-rc.7
Reproduction link
https://jsfiddle.net/ybom77/u243peaf/1/
Steps to reproduce
What is expected?
there should be no error in console
What is actually happening?
console:Uncaught TypeError: Cannot read property 'length' of null
what I find the reason for this error is the activePostFlushCbs is null
The text was updated successfully, but these errors were encountered: