Skip to content

Fix async not working - #1233

Closed
jacobsvante wants to merge 1 commit into
twitter:masterfrom
jacobsvante:fix-async
Closed

jacobsvante wants to merge 1 commit into
twitter:masterfrom
jacobsvante:fix-async

Conversation

@jacobsvante

Copy link
Copy Markdown

Wouldn’t work before because rendered would already be set to
suggestions.length before that._append is called, making
the suggestions.slice(0, that.limit - rendered) call return an empty
array.

Wouldn’t work before because `rendered` would already be set to
`suggestions.length` before `that._append` is called, making
the `suggestions.slice(0, that.limit - rendered)` call return an empty
array.
@rafaelGuerreiro

Copy link
Copy Markdown

+1. This closes the issue #1232

@rafaelGuerreiro

Copy link
Copy Markdown

Same as PR #1212

@jacobsvante

Copy link
Copy Markdown
Author

Nice, #1212 even got tests. Closing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants