-
Notifications
You must be signed in to change notification settings - Fork 88
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
[next] chore(NcBreadcrumbs): simplify code #5068
Conversation
0bf0bc0
to
1ddda89
Compare
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.
looks good to me
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
1ddda89
to
c9d2242
Compare
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
c9d2242
to
a57a912
Compare
Resolved conflicts. |
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 legit, code changes should be equivalent
Haven't work with array refs in Vue 3, but know they should work 🦭
These random Cypress failures are annoying. Six runs now and always a different test failing. |
Yes that is super annoying, Cypress knows of that flaky tests for couple of month but is not considered to be something worth to fix. |
☑️ Resolves
This PR simplifies the code of
NcBreadcrumbs
.Array.splice
instead ofslice -> push -> slice -> concat
. This should speed up the render function a bit.breadcrumbsRefs
object to be an array, which safes us from runningObject.values
at two spots.I didn't send this PR against
master
to not introduce any issues in the stable branch. Also, merging changes to vue2 render functions intonext
is always a pain. In case you insist, we could of course also improve it formaster
.No visual or functional changes.
Best viewed as https://github.com/nextcloud-libraries/nextcloud-vue/pull/5068/files?diff=unified&w=1