Skip to content

Laggy UI response while editing - Test: try Jotai instead of Redux. #6991

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

sneridagh
Copy link
Member

@sneridagh sneridagh commented Apr 14, 2025

It's been some time that I wanted to take a look at it, because in dev, the performance problems are quite noticeable, also, we have reports that in old machines it's unbearable... Luckily, it seems that in production builds, it's not that bad...

Anyways, I think we should be doing something in a non-performant way in the Redux side. Also, the fact that on every key press, all the store gets replaced with that big object, does not help...
So I did a quick try, and I replaced Redux with a Jotai atom and the results are quite good:

Before ( I was typing non-stop all the time...):

sluggish.mov

After:

goodperformance.mov

So, I'd try to find a way to improve the situation using Redux, because anything else would be a breaking change. Maybe reconsider the solution for 19.

@robgietema could you please take a look?

@sneridagh sneridagh changed the title Use Jotai instead of Redux for Global form data management. Laggy UI response while editing - Test: try Jotai instead of Redux. Apr 14, 2025
@sneridagh sneridagh requested a review from pnicolli April 15, 2025 07:53
* main:
  Fixed `unRegisterSlotComponent` method (#7016)
  Fix __mocks__ folder which breaks addon testing (#7001)
  Pin plone-sphinx-theme to prepare for PLIP 4097 (#7015)
  Added current evaluated `querystring` as a parameter in expander `querystring` key when it is a function (#7012)
  Linkcheck 2025 04 22 part 2 (#7011)
  Linkcheck 2025 04 22 (#7010)
  Allow `object_list` widget to receive a `schemaName` prop, mapped to an utility (#7007)
  Fix boolean in blocks edit config `BlockEditProps`  `selected` type (#6995)
  Fix/addon break in volto (#6992)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

1 participant