I have a react-editor-js instance that allows the user to type in some blog content. My form submission button is up on the header and not on the form body. Therefore I use redux to let those button clicks known in my form.
When the button clicks, the isPublishing
value in my redux changes. My form is listening to this component using const p = isPublishing(state=> state.test.isPublishing)
.
Refreshes are evil in this case, as it resets my EditorJs form data. It'd be amazing if I can listen to the changes without page refreshes. How can I achieve it? Thanks in advance!