[UXPROD-2266] Refactor forms to use final-form instead of redux-form Created: 12/Feb/20  Updated: 22/Apr/22

Status: In Progress
Project: UX Product
Components: None
Affects versions: None
Fix versions: None

Type: New Feature Priority: P3
Reporter: Khalilah Gambrell Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: NFR, bitrot, delegate_candidate, tech-debt, ui-only
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original estimate: Not Specified

Issue links:
Gantt End to Start
has to be done before STCOR-308 Upgrade react-redux Closed
Relates
relates to STCOR-441 refactor CreateResetPassword to use f... Closed
relates to STSMACOM-657 Refactor ConfigForm to use final-form Closed
relates to UID-39 Refactor forms to use final-form Closed
relates to UXPROD-1990 Migrate to React Final Form Closed
relates to STSMACOM-387 Refactor LocationForm to use final-fo... Open
relates to STSMACOM-390 Refactor ChangeDueDateDialog to use f... Open
relates to STSMACOM-392 Refactor ProxyManager to use final-fo... Open
relates to STSMACOM-388 Refactor AddressFieldGroup to use fin... Closed
relates to STSMACOM-389 Refactor PasswordValidationField to u... Closed
relates to STSMACOM-391 Refactor EditableList to use final-fo... Closed
relates to UXPROD-2923 NFR: Refactor Data Import forms to us... Closed
relates to STSMACOM-472 Move Custom fields to final-form Blocked
Requires
requires UICHKIN-157 Refactor forms to use final-form Closed
requires UICHKOUT-593 Refactor forms to use final-form Closed
requires UICIRC-419 Refactor forms to use final-form Closed
requires UIREQ-419 Refactor forms to use final-form - POC Closed
requires UITEN-76 Refactor forms to use final-form Closed
requires UIU-1474 Refactor forms to use final-form Closed
Development Team: Stripes Force

 Description   

Background (a) redux-form has been unsupported for years (b) stuffing form-state into the redux store is bad for performance.

Reasons for moving to final-form

  • Performance issues | For example, redux causes a page to re-render when typing (https://folio-org.atlassian.net/browse/STCOM-287)
  • Redux form is no longer updated / maintained
  • We should not maintain two libraries as a number of apps have moved to final-form


 Comments   
Comment by Zak Burke [ 12/Feb/20 ]

Generally, apps are free to refactor to final-form. The one potential "gotcha" is if they use components from stripes-smart-components which currently is still based around redux-form. An app pulling in <EditableList> or <AddressFieldGroup> must continue to use redux-form, at least until we provide props like fieldClass, fieldArrayClass in stripes-smart-components as discussed on STSMACOM-300 Closed .

Comment by Zak Burke [ 01/Feb/21 ]

Replaces UXPROD-1990 Closed

Comment by Zak Burke [ 01/Feb/21 ]

A very clear demonstration of the performance problems with redux-form.

Generated at Fri Feb 09 00:22:32 UTC 2024 using Jira 1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d.