chore: rename onDispose to onScopeDispose in warnings and tests (#4355)

This commit is contained in:
Haoqun Jiang
2021-08-17 06:19:06 +08:00
committed by GitHub
parent 620a69b871
commit 7c4e4514d1
2 changed files with 4 additions and 4 deletions

View File

@@ -98,7 +98,7 @@ export function onScopeDispose(fn: () => void) {
activeEffectScope.cleanups.push(fn)
} else if (__DEV__) {
warn(
`onDispose() is called when there is no active effect scope` +
`onScopeDispose() is called when there is no active effect scope` +
` to be associated with.`
)
}