Giter Site home page Giter Site logo

When a form contains ArrayInput with large entries. It takes more than a minute for a form to be submitted. about react-admin HOT 2 OPEN

vardhanshahpirimid avatar vardhanshahpirimid commented on May 18, 2024
When a form contains ArrayInput with large entries. It takes more than a minute for a form to be submitted.

from react-admin.

Comments (2)

slax57 avatar slax57 commented on May 18, 2024

Thanks for submitting this issue.

I confirm form submission is slow when there are many items in the ArrayInput, however I don't observe such drastic slowdowns.
Using the provided sandbox, performing the same action, on my computer the form submission only takes about 10 seconds.
I am running this on a 5 yo laptop.
See proof video below.

Capture.video.2024-04-19.11.22.24.mp4

Besides, I also ran a profiling using Chrome DevTools, but I see no calls to executeBuiltInValidation.

2024-04-19_11-47

I also ran a React DevTools profiling, which shows that the various TextInput components seem to be rerendered way too many times (approx. 236 rerenders at submission), which is certainly an issue.

2024-04-19_11-46

However, since the problem is, according to my tests, less critical than what your description leads to believe, and we do not have such a use-case on our projects at the moment, I can't guarantee we will fix this issue soon.

Any help diagnosing and fixing these slowdowns is welcome in the meantime.

from react-admin.

vardhanshahpirimid avatar vardhanshahpirimid commented on May 18, 2024

Hello @slax57, Thank you for having a look.

Somehow, it works fine in Stackblitz for me too, there's not much lag.

The issue does not appear to be reproducible in Stackblitz. However, when the application is running locally, or when it is deployed, there is a significant lag. The same behaviour is also observed in our application.

if possible, Can you please try again running on the local machine instead of Stackblitz? The delay will be reproduced and you can observe the executeBuiltInValidation in the profiler too.

PS:- Are there any suggestions or workarounds that can be employed until the problem is resolved?

from react-admin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.