Skip to content

Deal with meta earlier#67

Merged
simlmx merged 7 commits intomainfrom
deal-with-meta-earlier
Mar 8, 2026
Merged

Deal with meta earlier#67
simlmx merged 7 commits intomainfrom
deal-with-meta-earlier

Conversation

@simlmx
Copy link
Copy Markdown
Contributor

@simlmx simlmx commented Feb 24, 2026

No description provided.

@simlmx simlmx force-pushed the deal-with-meta-earlier branch 2 times, most recently from 86a2c42 to e6227f0 Compare February 27, 2026 17:13
We let `executePlayerMove` and `executeBoardMove` deal with it directly,
instead of it being a follow up step.
`valtio` created re-renders problems. `zustand` is closer to our `redux`
mindset and works well with our `immer` pathes.
This enables optimistic UI for things that require the current
timestamp. An estimated "server timestamp" will be used.

Remember: when the move runs on the backend, it will get the "real"
timestamp, and the move executed on the client will be reversed and the
patches from the backend will be used.
This makes problems with optimistic UI easier to figure out.
@simlmx simlmx force-pushed the deal-with-meta-earlier branch from 9c64967 to c85b9a6 Compare March 7, 2026 18:21
@simlmx simlmx merged commit c85b9a6 into main Mar 8, 2026
2 checks passed
@simlmx simlmx deleted the deal-with-meta-earlier branch March 8, 2026 04:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant