formio icon indicating copy to clipboard operation
formio copied to clipboard

Adding dynamic fields should not rerender the entire form

Open arafatahmedtanimcsedu57 opened this issue 3 years ago • 3 comments

Environment

Bowser Crush

  • Hosting type
    • [ ] Local deployment
      • Version:
  • Formio.js version: 4.14.8
  • Frontend framework: ReactJS
  • Browser: Chrome
  • Browser version: latest

Steps to Reproduce

  1. Create a datagrid with 15 input field
  2. To add a dynamic row, Press Add another button, and
  3. Continue it 100 times.

Expected behaviour

  • After adding a new dynamic row, the whole form shouldn't re-render.
  • The browser shouldn't crush for any number of dynamic fields.

Observed behaviour

  • Each time the whole form is re-rendering after a new dynamic field is added.
  • After adding 100 dynamic rows Browser is crushed.

arafatahmedtanimcsedu57 avatar Dec 26 '22 08:12 arafatahmedtanimcsedu57

I'm also facing the same issue. Our client wanting to add a dynamic row consists of 7 columns for thousands of time. He cant do any further actions after adding more than 100 dynamic rows, the browser either crashed or become irresponsive.

nazmul-prince avatar Dec 26 '22 09:12 nazmul-prince

@arafatahmedtanimcsedu57 thanks for filing this issue. I've reported this in our internal issue tracker and I'll try to follow up if it gets resourced.

brendanbond avatar Apr 27 '23 13:04 brendanbond

@arafatahmedtanimcsedu57 We are not able to reproduce this issue on the latest versions of formioJS (4.18.2, 4.19.0, etc.). Please, try on the latest versions and let us know if it is still the issue for you.

VikkiAlenn avatar Apr 24 '24 13:04 VikkiAlenn