Open sirvival3 opened 4 years ago
Its only in StrictMode I get the warning: https://codesandbox.io/s/strange-monad-lxtuu?file=/src/index.js
@sirvival3 did you find the solution of this issue. I am getting same problem?
Is there any solution to this? I am getting the same error.
Me too
Same error
Any news about this warning?
This issue still persists, and there is a PR pending to be merged which i believe fixed the issue, can the owner kindly review and merge the PR
@jpuri is there any chance we can have PR merged which fixes the issue?
Any news?
Is this thing abandoned?
Literally checked so many boards all the same desperate cries for help. #mergethedangfix
I would like to understand why does this warning not appear in some demos? E.g., the demo at https://jpuri.github.io/react-draft-wysiwyg/#/ does not give the warning.
any fix?
For me its not the error itself. It's knowing that there is a solution ready but apparently noone paying attention to mantaining this package. I'll just use CKE.
hmmm still have this issue, I use Next.js and I try to disable reactStrictMod, but no result... :s
Guys any fix yet? -_-
I got the same error
also got the same error
@jpuri Any word on if the possible fix https://github.com/jpuri/react-draft-wysiwyg/pull/1044 could be merged? Thanks in advance.
@jpuri any fixes yet??
Still same error.
Still no fixes I see :|
We replaced it with React Quill instead because of this issue.
Still same error.
Still same error!
The same... 😢😢😢
Doesn't anyone care about this package i'm getting the same error
i'm also facing the same problem
Somehow worked by Just removing "StrictMode" from my app.
Ok, so is this project dead or what? Ignoring this bug for 2 years is insane. "just remove strict mode" is not a solution. Definitely not a prod-ready lib anymore.
Almost three years later - having the same issue lol
Haha, I got exactly the same right now 😂 Is there any plans to fix this bug? "remove strict mode" is definitely not a solution. We're serious men and we doing serious software 😄
any update for this? still got the same error
@ilhamksyuriadi and anyone else who ends up here - if you look at this issue here it seems like this package has a sole maintainer who has a lot on their plate. I wouldn't count on a fix anytime soon :(
any solution? I have same problem with Next JS
One more with the same problem on Next.js :disappointed:
Do you have other libraries?
@EricHasegawa for my case, I already moved to react quill
same over here
We replaced it with React Quill instead because of this issue.
Thanks for this...so much easier
Use React Quill instead
import { Editor } from 'react-draft-wysiwyg'
import { EditorState } from 'draft-js'
const [editorState, setEditorState] = useState(EditorState.createEmpty())
const [isMounted, setIsMounted] = useState(false)
useEffect(() => {
setIsMounted(true)
return () => {
setIsMounted(false)
}
}, [])
<div className="order_detail">
{isMounted && (
<Editor
editorState={editorState}
wrapperClassName="editor"
editorClassName="demo-editor"
onEditorStateChange={setEditorState}
onChange={handleChange}
/>
)}
</div>`
Попробуйте это, должно сработать
import { Editor } from 'react-draft-wysiwyg' import { EditorState } from 'draft-js' const [editorState, setEditorState] = useState(EditorState.createEmpty()) const [isMounted, setIsMounted] = useState(false) useEffect(() => { setIsMounted(true) return () => { setIsMounted(false) } }, []) <div className="order_detail"> {isMounted && ( <Editor editorState={editorState} wrapperClassName="editor" editorClassName="demo-editor" onEditorStateChange={setEditorState} onChange={handleChange} /> )} </div>`
It didn't work for me
Still same 🥲🥲
it's now 2024 but still a problem
Thank you, This is my needed
this error is annoying.
Please don't write a package if you can't support it :)
What an absolute joke of a project. People BEGGING you to merge PRs to fix SIMPLE bugs which you ignore. You'd be better off deleting this than keeping it around for your resume.
Switching to React Quill because of this issue
When I click on the editor I get this warning in the console:
I made a codeSandbox where it is too: https://codesandbox.io/s/brave-architecture-4zpm5