-
Notifications
You must be signed in to change notification settings - Fork 159
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: duplicated file search request #9861
Conversation
emit('search', buildSearchTerm(true)) | ||
// return early if this view is not active, no search needed | ||
{ | ||
const isSearchViewPainted = isLocationCommonActive(router, 'files-common-search') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Painted ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yup, painted, e.g. painted on screen, rendered, visible, ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you like active better? but keep in mind, active can mean, active in background or similar and on screen
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Mounted", as per Vue-jargon?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i updated it to isSearchViewActive
since the router guard is also called isLocationCommonActive
, thanks guys for the input
8620af5
to
4ce4a07
Compare
Kudos, SonarCloud Quality Gate passed! |
Description
fixes a bug where the search was sent unnecessarily twice.
Related Issue
How Has This Been Tested?
Types of changes
Checklist: