Skip to content

fix: app hangs on load due to too many re-renders#186

Open
CoderParth wants to merge 1 commit into
fencer-so:mainfrom
CoderParth:fix/app-keeps-hanging-on-load
Open

fix: app hangs on load due to too many re-renders#186
CoderParth wants to merge 1 commit into
fencer-so:mainfrom
CoderParth:fix/app-keeps-hanging-on-load

Conversation

@CoderParth

Copy link
Copy Markdown

The app was completely freezing on load and nothing was clickable.

Turns out the API was returning 1700+ goals and the current logic is dispatching each one individually, which caused 1700+ re-renders back to back locking up the JS thread entirely.

Fixed by adding a bulk createGoals action so everything gets dispatched in one go instead of one at a time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant