Skip to content

Commit 1d9e2c3

Browse files
committed
docs: delete attrs and slots are not reactive
1 parent 549b330 commit 1d9e2c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/composition-api-setup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export default {
111111
}
112112
```
113113

114-
`attrs` and `slots` are stateful objects that are always updated when the component itself is updated. This means you should avoid destructuring them and always reference properties as `attrs.x` or `slots.x`. Also note that, unlike `props`, the properties of `attrs` and `slots` are **not** reactive. If you intend to apply side effects based on changes to `attrs` or `slots`, you should do so inside an `onBeforeUpdate` lifecycle hook.
114+
`attrs` and `slots` are stateful objects that are always updated when the component itself is updated. This means you should avoid destructuring them and always reference properties as `attrs.x` or `slots.x`. If you intend to apply side effects based on changes to `attrs` or `slots`, you should do so inside an `onBeforeUpdate` lifecycle hook.
115115

116116
### Exposing Public Properties {#exposing-public-properties}
117117

0 commit comments

Comments
 (0)