Skip to content

Remove the extra "nextId" variable from the "Updating arrays in state" page #5634

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

barbossa
Copy link

Hello,
At the page https://beta.reactjs.org/learn/updating-arrays-in-state I've found that the "nextId" variable is not uses in the four codesandbox examples.

The first place in the "Making other changes to an array" section

screenshot_2023_02_27_11:29:23

The second and third place in the "Updating objects inside arrays" section

screenshot_2023_02_27_11:31:55

screenshot_2023_02_27_11:33:47

The forth place in the "Write concise update logic with Immer" section

screenshot_2023_02_27_11:35:20

@github-actions
Copy link

github-actions bot commented Feb 27, 2023

Size Changes

📦 Next.js Bundle Analysis

This analysis was generated by the next.js bundle analysis action 🤖

This PR introduced no changes to the javascript bundle 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants