react-draft-wysiwyg icon indicating copy to clipboard operation
react-draft-wysiwyg copied to clipboard

Warning: Can't call setState

Open sirvival3 opened this issue 4 years ago • 53 comments

When I click on the editor I get this warning in the console:

Warning: Can't call setState on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to this.state directly or define a state = {}; class property with the desired state in the r component.

I made a codeSandbox where it is too: https://codesandbox.io/s/brave-architecture-4zpm5

sirvival3 avatar Apr 06 '20 18:04 sirvival3

Its only in StrictMode I get the warning: https://codesandbox.io/s/strange-monad-lxtuu?file=/src/index.js

sirvival3 avatar Apr 06 '20 21:04 sirvival3

@sirvival3 did you find the solution of this issue. I am getting same problem?

sahildhiman avatar May 21 '20 12:05 sahildhiman

Is there any solution to this? I am getting the same error.

megarg avatar Aug 17 '20 22:08 megarg

Me too

kitman20022002 avatar Sep 13 '20 07:09 kitman20022002

Same error

juicyjelly74 avatar Jan 13 '21 02:01 juicyjelly74

Any news about this warning?

Salalf01 avatar Feb 09 '21 23:02 Salalf01

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

yusuf-khamis avatar Aug 10 '21 11:08 yusuf-khamis

@jpuri is there any chance we can have PR merged which fixes the issue?

appadminlx avatar Oct 04 '21 19:10 appadminlx

Any news?

Jrgsto avatar Dec 09 '21 16:12 Jrgsto

Is this thing abandoned?

BaniGrisson avatar Jan 09 '22 23:01 BaniGrisson

Literally checked so many boards all the same desperate cries for help. #mergethedangfix

bubbster95 avatar Jan 24 '22 16:01 bubbster95

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.

siddjain avatar Feb 10 '22 18:02 siddjain

any fix?

stormdotcom avatar Feb 11 '22 14:02 stormdotcom

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.

BaniGrisson avatar Feb 14 '22 17:02 BaniGrisson

hmmm still have this issue, I use Next.js and I try to disable reactStrictMod, but no result... :s

maxlech974 avatar Jul 01 '22 15:07 maxlech974

Guys any fix yet? -_-

taimoorimran avatar Jul 10 '22 19:07 taimoorimran

I got the same error

image

sabbirshawon avatar Jul 21 '22 22:07 sabbirshawon

also got the same error

Yidi0213 avatar Jul 22 '22 13:07 Yidi0213

@jpuri Any word on if the possible fix https://github.com/jpuri/react-draft-wysiwyg/pull/1044 could be merged? Thanks in advance.

owen-soak avatar Jul 27 '22 21:07 owen-soak

@jpuri any fixes yet??

tylertaewook avatar Jul 28 '22 08:07 tylertaewook

Still same error.

xeqtrTC avatar Jul 30 '22 23:07 xeqtrTC

Still no fixes I see :|

kiknaio avatar Sep 06 '22 06:09 kiknaio

We replaced it with React Quill instead because of this issue.

keithics avatar Sep 07 '22 00:09 keithics

Still same error.

angelinuxx avatar Oct 25 '22 00:10 angelinuxx

Still same error!

ggenilson avatar Nov 06 '22 02:11 ggenilson

The same... 😢😢😢

alexeysarakuz avatar Nov 10 '22 10:11 alexeysarakuz

Doesn't anyone care about this package i'm getting the same error

berryboylb avatar Nov 14 '22 16:11 berryboylb

i'm also facing the same problem

PixiLoop avatar Nov 25 '22 15:11 PixiLoop

Somehow worked by Just removing "StrictMode" from my app.

SelmiAbderrahim avatar Dec 25 '22 18:12 SelmiAbderrahim

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.

cheezballs avatar Jan 01 '23 16:01 cheezballs