-
Notifications
You must be signed in to change notification settings - Fork 107
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
Feature/domain autocomplete getters #368
Conversation
// THE SOFTWARE. | ||
|
||
const combineDomainList = ({ domainList, visitedDomainList }) => { | ||
const domainListUuidList = domainList.map(domain => domain.domainInfo.uuid); |
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.
how big do these lists get? are they prior to the 15-limit or after?
if it's prior to that limit, probably worth switching this to be a map lookup - 100s might be visibly slow to do repeated lookups on a list like this.
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.
Right now there is no cap on visitedDomainList so this can grow infinitely. I will change the action in the next PR (#369) to cap out to a max of 15.
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.
Seems alright, though I admit I don't follow all the pieces involved.
(e.g. all the getters' source data / etc. should be pretty obvious if it works while testing locally tho)
Added
DomainAutocomplete
getterscombine
helper which takesdata
&callbacks
as arguments which will pass data to first callback then passes output to next callback until the final callback returns the final output (similar to how middleware works).