reactjs / react.dev

The React documentation website
https://react.dev/
Creative Commons Attribution 4.0 International
11.07k stars 7.55k forks source link

Error in section "What happens if you replace state after updating it" explanation of code execution #7019

Closed Jassem closed 4 months ago

Jassem commented 4 months ago

Hello,

I've noticed an error in the explanation of code executionon in section "What happens if you replace state after updating it" page (https://react.dev/learn/queueing-a-series-of-state-updates).

In the example, the following table is shown: in the first row of the table we have 0 (unused) but normally 0 is used. Apex_1720111041397

Thank you in advance for your attention and consideration of this correction.

Best regards, Jassem GHRISS

Rekl0w commented 4 months ago

PR submitted.

Jassem commented 4 months ago

@Rekl0w Thank you for taking the time to submit this fix! It is really appreciated.

Rekl0w commented 4 months ago

@Jassem Don't close it yet. PR still open. Wait for the merge.

Jassem commented 4 months ago

@Rekl0w I'm closing this ticket because I realized it wasn't an error.

Rekl0w commented 4 months ago

@Jassem If you close, the core team won't see this and they won't merge it.