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

perf: don't recreate items list twice while filtering #154

Merged
merged 1 commit into from
Nov 9, 2023

Conversation

ghiscoding
Copy link
Owner

  • when we are filtering, the previous code was calling initListItems() and then updateSelected() which both recreate the rows list, there's no need to do it twice when we can simply pass it from the 1st pass to the 2nd method for other transformation

- when we are filtering, the previous code was calling `initListItems()` and then `updateSelected()` which both recreate the rows list, there's no need to do it twice when we can simply pass it from the 1st pass to the 2nd method for other transformation
Copy link

github-actions bot commented Nov 9, 2023

🎭 Playwright Summary - Success 🎉

Playwright Report

[email protected] test:e2e /home/runner/work/multiple-select-vanilla/multiple-select-vanilla
playwright test --config playwright/playwright.config.ts

Running 69 tests using 1 worker
·····································································
69 passed (2.2m)

@ghiscoding ghiscoding merged commit 5e58ceb into main Nov 9, 2023
2 checks passed
@ghiscoding ghiscoding deleted the perf/recreate-rows-list branch November 9, 2023 06:44
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