-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
base: master
Are you sure you want to change the base?
Conversation
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.
We experienced this bug too. Why is this not merged yet? |
+1 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. |
+1 The commit is identical to the solution I implemented before finding this PR. |
+1 |
+1 |
+1 |
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. |
"Mirko Beine seems not to be a GitHub user." vs. https://github.com/mirkobeine ? |
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.