Skip to content
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

refactor(filter-bar): replace batch dispatch actions with loop of singular #3783

Merged
merged 3 commits into from
Jun 21, 2023

Conversation

HeartSquared
Copy link
Contributor

@HeartSquared HeartSquared commented Jun 21, 2023

Why

KDS-1552

Calling a dispatch action within a loop will re-render only once all executed :)
https://react.dev/learn/queueing-a-series-of-state-updates

Thanks @gyfchong

What

Refactor FilterBar to loop through singular dispatch actions instead of having a separate batch action for the same result.

@HeartSquared HeartSquared requested a review from a team as a code owner June 21, 2023 01:01
@changeset-bot
Copy link

changeset-bot bot commented Jun 21, 2023

🦋 Changeset detected

Latest commit: 32a98e5

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@kaizen/components Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Contributor

github-actions bot commented Jun 21, 2023

✨ Here is your branch preview! ✨

Last updated for commit 32a98e5: chore: add changeset

Copy link
Contributor

@gyfchong gyfchong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

すばらしい

@HeartSquared HeartSquared merged commit 3c2c7ed into main Jun 21, 2023
@HeartSquared HeartSquared deleted the KDS-1552/filter-bar--refactor-dispatch-actions branch June 21, 2023 01:22
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.

2 participants