New revamped chat messages actually break if the relevant ability or weapon is deleted
Because we do a sort of weird post-render with React, if you reload the page when the underlying data is missing the chat message is empty. Not a huge issue, probably more likely for weapons than abilities.
The fix is to embed the name and the image URL in the pre-rendered HTML so we can always retrieve it (but only use the image URL as fallback, and go for the current data.img
when possible.)
ALTERNATIVELY! Think about updating the stored HTML after the first React render and then using ReactDOM.hydrate
instead of render
?
Edited by Neil de Carteret