From f6ad39d053a5323c85171ac72ecbcba214c57fd6 Mon Sep 17 00:00:00 2001 From: Ruslan Makarov Date: Sat, 7 Sep 2024 08:58:19 +0700 Subject: [PATCH] feat: add useId --- docs/en/development/architectural-patterns.md | 4 +++- docs/ru/development/architectural-patterns.md | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/en/development/architectural-patterns.md b/docs/en/development/architectural-patterns.md index 584937c27..bacdfc6a0 100644 --- a/docs/en/development/architectural-patterns.md +++ b/docs/en/development/architectural-patterns.md @@ -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. ::: diff --git a/docs/ru/development/architectural-patterns.md b/docs/ru/development/architectural-patterns.md index ec15d954c..fc400a031 100644 --- a/docs/ru/development/architectural-patterns.md +++ b/docs/ru/development/architectural-patterns.md @@ -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. :::