Skip to content

Commit

Permalink
docs: add a warning for setData usage in Composition API
Browse files Browse the repository at this point in the history
  • Loading branch information
DespertaWeb authored May 12, 2023
1 parent 0b603e5 commit 271da2f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -1526,7 +1526,9 @@ setData(data: Record<string, any>): Promise<void>
`setData` does not allow setting new properties that are not defined in the component.
::: warning
Also, notice that `setData` does not modify composition API `setup()` data.
:::
`Component.vue`:
Expand Down

0 comments on commit 271da2f

Please sign in to comment.