Skip to content

[Mistake]: Unused key in useOptimistic code sample #6926

Open
@lnicepei

Description

Summary

The code example for useOptimistic hook contains unused key parameter

Page

https://19.react.dev/reference/react/useOptimistic#usage

Details

In the Optimistically updating forms section, inside the code sample there is an unused key parameter, which, apparently, should have been used on the line 25:

<div key={index}>

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions