You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* `useId` **should not be used to generate cache keys** for [use()](/reference/react/use). The ID is stable when a component is mounted but may change during rendering. Cache keys should be generated from your data.
47
+
* `useId` **不应该被用来为 [use()](/reference/react/use) 生成缓存键**。这个 ID 在组件挂载的时候是稳定的,但是在后续的渲染过程中可能会发生变化。缓存键应该由你的数据中生成。
51
48
52
-
* `useId` **should not be used to generate keys** in a list. [Keys should be generated from your data.](/learn/rendering-lists#where-to-get-your-key)
0 commit comments