react icon indicating copy to clipboard operation
react copied to clipboard

[BUG] Losing data when re-rendering the form with custom components

Open joaotalegria opened this issue 3 years ago • 2 comments

Environment

Please provide as many details as you can:

  • Hosting type
    • [] Form.io
    • [x] Local deployment
      • Version:
  • Formio.js version: 4.14.7
  • @formio/react: "5.2.3,
  • Frontend framework: React v.17.0.2
  • Browser: chrome
  • Browser version: 102.0.5005.63

Description

  1. Giving a wizard with 3 pages, all of them with custom-components
  2. The data inserted on them is persisted on a Database (AWS Dynamo)
  3. When I try to re-render the form and passed the saved data within submission object on Form Component, the custom components have a value for a second, and after that, they re-render with null value.

Expected behavior

  • On re-render the form, components should keep their value

Observed behavior

  • As mentioned on Description 3)

joaotalegria avatar Jun 13 '22 18:06 joaotalegria

@joaotalegria Could you share a codesandbox or jsfiddle for better understand.

elias-soykat avatar Jul 24 '22 19:07 elias-soykat

Happens to me to. Have a custom component in a formio wizard. When I fill out the custom component, click on next, and then go back, the data of the custom component is gone.

Benzer1406 avatar Aug 09 '22 14:08 Benzer1406

We're currently addressing a backlog of GitHub issues. Closing this thread as it is outdated. Please re-open if it is still relevant. Thank you for your contribution!

jeriah-formio avatar Feb 14 '24 14:02 jeriah-formio