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

fix(list): fix issue where last call to debounced update filter logic would override args from previous calls #11064

Merged
merged 2 commits into from
Dec 16, 2024

Conversation

jcfranco
Copy link
Member

@jcfranco jcfranco commented Dec 16, 2024

Related Issue: #10731

Summary

Adds internal flag to determine if filter should be performed. Similar to ad054fd (#10482), this is needed because subsequent calls after updateListItem({ performFilter: true }) would take precedence due to how lodash#debounce works:

The func is invoked with the last arguments provided to the debounced function.

BEGIN_COMMIT_OVERRIDE
END_COMMIT_OVERRIDE

@github-actions github-actions bot added the bug Bug reports for broken functionality. Issues should include a reproduction of the bug. label Dec 16, 2024
@jcfranco jcfranco added no changelog entry Use the commit override to avoid a changelog entry pr ready for visual snapshots Adding this label will run visual snapshot testing. labels Dec 16, 2024
Copy link
Member

@benelan benelan left a comment

Choose a reason for hiding this comment

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

Nice! Did this reproduce too inconsistently for an e2e test?

@jcfranco
Copy link
Member Author

@benelan Good idea. I'll update this PR if I can reproduce consistently.

@jcfranco jcfranco added the skip visual snapshots Pull requests that do not need visual regression testing. label Dec 16, 2024
@jcfranco jcfranco removed the pr ready for visual snapshots Adding this label will run visual snapshot testing. label Dec 16, 2024
@jcfranco jcfranco merged commit 9b93ade into dev Dec 16, 2024
9 of 10 checks passed
@jcfranco jcfranco deleted the jcfranco/fix-list-filter-on-recreation branch December 16, 2024 08:35
@github-actions github-actions bot added this to the 2024-12-17 - Dec Milestone milestone Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug reports for broken functionality. Issues should include a reproduction of the bug. no changelog entry Use the commit override to avoid a changelog entry skip visual snapshots Pull requests that do not need visual regression testing.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants