Closed Bug 1688570 Opened 3 years ago Closed 3 years ago

[Translate] Changing textarea contents from/to initial values is slow

Categories

(Webtools Graveyard :: Pontoon, defect, P3)

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: julenx, Assigned: julenx)

References

Details

Attachments

(1 file)

This is related to the unsavedchanges module, and more specifically its state's exist and ignored members being updated and read as unsavedChangesExist and unsavedChangesIgnored from the redux store.

This is causing re-renders even if the value of the state isn't being used for rendering purposes (they are used for parameters in a callback). Reading such values directly from the store at invoke time should suffice to avoid the performance penalty, i.e. without any component-level subscriptions.

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Priority: -- → P3
Resolution: --- → FIXED
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: