Context Mismatch
here we go again.
so... as of writing this you did an event and everything went haywire with people editing so much stuff
and being the annoying pest i am, i spotted the context mismatch error. again. so i went back to the network tab. first thing i spotted was that the words were shifted by 1. and then i refreshed so i reproduced it, and this sent me down a RABBIT HOLE.
the words were FINE? word index and all, so it HAD to be something internally. clicking a few words AFTER wouldn't result in the error, and im just dhfjhdskfjmcn,mn
and then i did it ONE more time and the words shifted. 4 to the right. and again, the context of the payload was as follows:
{"before":"and [first-class functions](https://bliptext.com/articles/first-class-function)","word":".","after":"It is","index":80}
IT SHIFTED 4 TO THE RIGHT AGAIN?
maybe it's because i had it on for too long. so i refreshed and it didn't happen immediately. then the 3rd time i swapped it shifted 1 to the right. there's so much shifting going on and i have NO idea what's going on. RAAAAAAAAAAAAAAAGHHHHHH
We have no fing idea either, face is a great developer!
The current context mismatch happens when:
- Formatted words (
**,*,[]()) get replaced twice. hello->**hi**->wassup-> Context mismatch!
I will leave this be as it's not a super major issue, and is usually fixed with a page reload.
I have tried re-rendering the content when the error happens, but it would require too big of a codebase change to work properly. A full page refresh is better.