Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: DraftEntity.create will be deprecated soon. Please use "contentState.createEntity" instead. #31

Closed
goodhyun opened this issue Dec 30, 2016 · 2 comments

Comments

@goodhyun
Copy link

You can see the following warning, if you are using the upcoming 0.10.0 draft-js

WARNING: DraftEntity.create will be deprecated soon!
Please use "contentState.createEntity" instead.

The culprit was around here:

return Entity.create(ENTITY_TYPE.LINK, 'MUTABLE', data);

@gbbr
Copy link

gbbr commented Feb 1, 2017

This could deem to be tricky since an array of blocks is generated, which is later used to return a content state. At the point where the entity is created there is technically no content state available. It'd be nice to fix this.

@poci-hu
Copy link

poci-hu commented Mar 19, 2017

+1, what if we don't have a contentState (yet)?

@sstur sstur closed this as completed Sep 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants