diff --git a/packages/guidelines.md b/packages/guidelines.md index f50089f873b..83f62302215 100644 --- a/packages/guidelines.md +++ b/packages/guidelines.md @@ -17,7 +17,7 @@ You can also find some reasons for those design decisions and also some tips for - Use `configurableWindow` (etc.) when using global variables like `window` to be flexible when working with multi-windows, testing mocks, and SSR. - When involved with Web APIs that are not yet implemented by the browser widely, also outputs `isSupported` flag - When using `watch` or `watchEffect` internally, also make the `immediate` and `flush` options configurable whenever possible -- Use `tryOnUnmounted` to clear the side-effects gracefully +- Use `tryOnScopeDispose` to clear the side-effects gracefully - Avoid using console logs - When the function is asynchronous, return a PromiseLike