Comments (2)
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
.
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.
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.
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)
- Duplicate entries in documentation search HOT 2
- `<PasswordInput/>` or `<TextInput/>` has corrupted `validate` prop, if field is handled with `disabled` prop HOT 4
- Auth provider login Promise rejection with "message" doesn't trigger notification message HOT 2
- When we use useRedirect hook to go back to a List Component, the pagination is reseted to page 1
- <AutocompleteInput> and <AutocompleteInputArray> refetch choises passed from graphql HOT 1
- Fields inside the ArrayInput aren't set as dirty when built HOT 1
- Bug in Translation in post edit page showing (post "some text here") HOT 2
- Dark mode become default upgrading react-admin package HOT 2
- AutocompleteInput with ReferenceInput calling getList() two times after select on sugestion list HOT 1
- Clearing filters using setFilter({}) does not clear FilterLiveSearch text input HOT 2
- [Translation] "Need help with this error?" HOT 1
- Following the "Save and add another" documentation leads to different submit behaviors when submitting on click or on pressing the "return" key HOT 1
- TypeError: resetErrorBoundary is not a function in nested List HOT 1
- Navigating to sub routes does not work when parent DataGrid has rowClick="edit" HOT 1
- Posts title doesn't work in the tutorial HOT 1
- Supporting Mobile Devices using useMediaQuery in the tutorial doesn't work HOT 1
- AutocompleteInput with Create, autoSelect not working HOT 3
- [React 18.3.1] NumberFieldImpl: Support for defaultProps will be removed from memo components in a future major release. HOT 1
- react-admin not rendered with next.js 13 (AwaitRenderStatus is not defined) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-admin.