-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Editable.changeFormats() should update setState #1124
Comments
Can you explain the rationale on this one? Or is this because Facebook has more recently advocated the function form as being more aligned with Fiber goals? Saddens me that it's a bit more verbose 😞 |
Noticed there's a handful more of these issues. Is there a parent issue? Should we create one? |
The logic I think is because |
Hmm, just doesn't seem like a gotcha that's commonly encountered. At least it's not relevant in this case. I'm not particularly opposed to it, especially now that it's become more advocated as the preferred pattern. Some questions like: Is Was there some previous discussion of this? |
I don't think so.
Maybe |
Changing this actually fixes up some weird glitches I have around formatting. I would encounter things where the format was not applying correctly and after I switched the code over it worked perfectly.
Yeah I just opened them to chronicle what I saw in a quick glance. Most of them probably will never cause an error, this one has for me. Whether we should create a parent issue is up to you. The benefit is minimal probably, but this is a best practice and will work better with the new way fiber is going to reconcile and update. |
Currently:
Around line 368 inside changeFormats()
Should be:
The text was updated successfully, but these errors were encountered: