Rich Text: Unnecessarily dispatching change actions #5103
Labels
[Feature] Rich Text
Related to the Rich Text component that allows developers to render a contenteditable
[Type] Bug
An existing feature does not function as intended
Issue Overview
The RichText component dispatches more change actions than necessary.
Steps to Reproduce
Expected Behavior
A single change action is dispatched.
Current Behavior
Three change actions are dispatched:
This wouldn't be entirely problematic if the value weren't a new array each time, as the reducer considers it a new value and updates references accordingly (thus triggering rerenders).
Possible Solution
Should we be checking that content has changed from
RichText
before triggering an update?Related
Possibly related to #4956
cc @iseulde @youknowriad
The text was updated successfully, but these errors were encountered: