Everytime the .toString('markdown') method is called upon a variable holding a copy of the original state, both the original state and the copy are being mutated to markdown. I need to have both the original react-rte untouched state (the big object holding the whole editor state) and the markdown converted state in a string variable to send through a POST request.
Everytime the .toString('markdown') method is called upon a variable holding a copy of the original state, both the original state and the copy are being mutated to markdown. I need to have both the original react-rte untouched state (the big object holding the whole editor state) and the markdown converted state in a string variable to send through a POST request.