The question is React State Not Updating correctly and is actually linking code that updates the state correctly. There's nothing to answer here, because there isn't any problem. Is this supposed to be flagged?
-
4They didn't include a mcve in the question itself, or ask a specific technical question, so there's no action to be taken here even if the StackBlitz link didn't work.– ggorlenCommented Apr 8 at 17:08
-
7Not sure why this is getting close votes for "can no longer be reproduced." Is the problem OP is asking about somehow not possible now?– John MontgomeryCommented Apr 8 at 22:02
-
4This is one reason why links to code aren't acceptable. If a change is made there's no way to see the history.– Mark RansomCommented Apr 9 at 3:03
-
5Posts like these make me want to suggest a "no issue here, just a misunderstanding what the code is doing" VTC reason. I'd close as "not reproducible or was caused by typo". If OP pushes back and swears there's a problem, then ask them to provide better details and produce a complete [mcve], then hit them with the "needs debugging details" close reason if they can't provide anything.– Drew ReeseCommented Apr 9 at 6:19
-
2Just generally, if there are questions that truly answer themselves (in the question body): one could simply cut out the answer from the question and put it into an answer (giving attribution).– NoDataDumpNoContributionCommented Apr 9 at 6:25
-
2@Cuzy Sure, if it is already closed. Oftentimes you may want to prompt the OP to edit their post first if you suspect there's a chance to salvage before casting votes to close.– Drew ReeseCommented Apr 9 at 8:31
-
1This has been answered in this question: meta.stackoverflow.com/questions/429767/…– JK.Commented Apr 10 at 22:06
-
@JK. What do you mean? That's just a link to this question itself.– Donald DuckCommented Apr 11 at 10:53
-
1Maybe he recently learned about recursion XD– AndréCommented Apr 11 at 14:07
Add a comment
|
2 Answers
Several closure reasons seem to apply:
- "Not reproducible or was caused by a typo",
- "Needs debugging details",
- "Needs details or clarity"
However, these are only available once you pass 3000 reputation.
Until then, you can flag for these reasons, rather than vote to close.
-
9@Cuzy close votes are locked behind that reputation cutoff. Flags aren't.– CerbrusCommented Apr 9 at 8:20
-
-
2@Cuzy Even if you don't have the rep to cast close votes, you can raise the corresponding flag under "needs improvement" and then I believe the question will end up in the "close vote review queue".– LundinCommented Apr 9 at 12:30
If the code the OP shows does not, in fact, have the problem they claim it does, it should be closed as "Not reproducible or caused by a typo". (If they have code that actually reproduces the problem or other instructions that allow us to actually reproduce their problem, they can edit the question with that so that it can be considered for reopening).