You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@jdz321 Thanks a lot! This works for me too. I'd like to add a note for the ones who use TypeScript like me: this is not type safe solution, since display and hydrated properties aren't exposed as public properties of the corresponding interfaces. So you'll have either to add type assertions to any for them, or add ignore comment. Sounds dirty, but the whole solution is a hack.
Activity
jdz321 commentedon Jun 15, 2022
This issue is caused by a new feature in React18: https://reactjs.org/docs/strict-mode.html#ensuring-reusable-state
I saw this question for a friend, and solved this way. I simply removed the editor dom, there should be a more appropriate way.
undeletable commentedon Oct 24, 2023
@jdz321 Thanks a lot! This works for me too. I'd like to add a note for the ones who use TypeScript like me: this is not type safe solution, since
displayandhydratedproperties aren't exposed as public properties of the corresponding interfaces. So you'll have either to add type assertions toanyfor them, or add ignore comment. Sounds dirty, but the whole solution is a hack.bilalesi commentedon May 27, 2024
for anyone looking for
TSsolutions