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 limit bug when async update occurs #1451

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mirkobeine
Copy link

When having 0 rendered suggestions, a limit of 5 and a suggestions array with length of 5, nothing will be rendered.
This is due to the fact that the "rendered" variable is updated before the suggestions are sliced.
With the given PR, everything works as expected.

When having 0 rendered suggestions, a limit of 5 and a suggestions array with length of 5, nothing will be rendered.
This is due to the fact that the "rendered" variable is updated before the suggestions are sliced.
With the given PR, everything works as expected.
@MrCsabaToth
Copy link

We experienced this bug too. Why is this not merged yet?

@parrin
Copy link

parrin commented Mar 1, 2016

+1
same error here.

On limit 5 the suggestions.length of 3, 4 and 5 will not work properly. Length 1 and 2 seem to work accidentally

Workaround could be increasing the limit.

@MerickOWA
Copy link

+1

Same issues as #1499 #1497 #1485

I hope this gets fixed soon

@timothyblam
Copy link

+1

The commit is identical to the solution I implemented before finding this PR.

@Carscafmoo
Copy link

+1

@ypnos-web
Copy link

+1
solves the problem I observed

@kmussel
Copy link

kmussel commented Jul 29, 2016

+1

@CLAassistant
Copy link

CLAassistant commented Jul 18, 2019

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Mirko Beine seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@MrCsabaToth
Copy link

MrCsabaToth commented Jul 18, 2019

"Mirko Beine seems not to be a GitHub user." vs. https://github.com/mirkobeine ?
The CLA bot went kookoo?

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.

None yet

10 participants