Skip to content

Commit

Permalink
feat: add useId
Browse files Browse the repository at this point in the history
  • Loading branch information
altrusl committed Sep 7, 2024
1 parent be2f1b8 commit f6ad39d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion docs/en/development/architectural-patterns.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,5 +145,7 @@ product.value = await api.products.product(props.productId);
stopLoading();
```

`uuid` - any function to generate a unique id.
This example uses `useId`, which appeared in `Vue 3.5`

For earlier versions, you can use any function to generate a unique id.
:::
5 changes: 3 additions & 2 deletions docs/ru/development/architectural-patterns.md
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,8 @@ product.value = await api.products.product(props.productId);
stopLoading();
```

This example uses `useId`, which appeared in `Vue 3.5`
Данный пример использует `useId`, который появился во `Vue 3.5`

Для более ранних версий можно использовать любую функцию для генерации уникального id.

For earlier versions, you can use any function to generate a unique id.
:::

0 comments on commit f6ad39d

Please sign in to comment.