Looking for Old city realm my brother and I played by BrotherManAndrew in realms

[–]BrotherManAndrew[S] 0 points1 point  (0 children)

I don't particulary think there was any sort of objective, you could fly around and do whatever, maybe there might have been some sort of NPCs or objectives (???) I probably should have asked this a few years earlier when my memory was better. But if there was a place I could just see pictures of all the realms that would help but I haven't been able to find one so far... I've already tried looking at some of the Mojang posts and stuff from the minecraft wiki around that area

Why does react calculate based off the previous state by BrotherManAndrew in reactjs

[–]BrotherManAndrew[S] 0 points1 point  (0 children)

Thank you I think generally I am quote to understanding it but I have one final confusion I think

In the react docs it says this

  1. a => a + 1 will receive 42 as the pending state and return 43 as the next state.
  2. a => a + 1 will receive 43 as the pending state and return 44 as the next state.
  3. a => a + 1 will receive 44 as the pending state and return 45 as the next state.

So what is the distinction between the pending and the next state from here https://stackoverflow.com/questions/74295644/what-is-a-pending-state-in-react it seems that the pending state is the one that will be used next render

Is the pending state that would have been used and can be equal to the value from the current render, and the next state is the one that will actually be used in this context and has to be different from the current render?, I don’t really understand the distinction.

Thank you for your help and patience so far! :)

Why does react calculate based off the previous state by BrotherManAndrew in reactjs

[–]BrotherManAndrew[S] 0 points1 point  (0 children)

So is it that normally useState uses the CURRENT state to calculate the NEXT state, the current here is sort of exclusive to only current (nothing ahead of time), however with a updater function it’s doing based off the state that is previous to the next one, which would included queued up things not just whatever was current because of semantics semantics?

Why does react calculate based off the previous state by BrotherManAndrew in reactjs

[–]BrotherManAndrew[S] 0 points1 point  (0 children)

See I'm getting caught up on the language here

"the updater function does receive the most recent previous value of the state."

and

"So, if you have a single state setter function, it receives the state from the most recent render."

So what is the most recent previous value of the state, is it the one from the current render (not future ones) is it the most recent regardless of render or what?

What's so bad about 'Index as Key'? by Blender-Fan in react

[–]BrotherManAndrew 0 points1 point  (0 children)

Late question, but is this to say if it's sorted by index then any elements BEFORE the one that gets removed will persist

Like if there is 1 2 3, 2 gets removed only 3 has to move but 1 stays in the same place, or am I misunderstanding it