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(NcActions): check slot content only during the rendering #5197

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ShGKme
Copy link
Contributor

@ShGKme ShGKme commented Jan 31, 2024

☑️ Resolves

🖼️ Screenshots

🏚️ Before 🏡 After
B A

🚧 Tasks

  • ...

🏁 Checklist

  • ⛑️ Tests are included or are not applicable
  • 📘 Component documentation has been extended, updated or is not applicable

- $scopedSlots cannot be used in beforeUpdated.
  On re-rendering, when vnode is reused, on beforeUpdated $scopedSlots returns an old value and breaks rendering.
- Officially, $slots/$scopedSlots should be used only during the rendering
- This commit returns $slots to have an old behavior and resolve regression
- TODO: find better soluton to support both slots API

Reverts commit b94ff04

Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
Copy link

codecov bot commented Jan 31, 2024

Codecov Report

Attention: 6 lines in your changes are missing coverage. Please review.

Comparison is base (83d844d) 39.34% compared to head (eee1852) 39.39%.

Files Patch % Lines
src/components/NcActionLink/NcActionLink.vue 0.00% 2 Missing ⚠️
src/components/NcActions/NcActions.vue 33.33% 0 Missing and 2 partials ⚠️
src/components/NcActionRouter/NcActionRouter.vue 0.00% 1 Missing ⚠️
src/mixins/actionGlobal.js 85.71% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5197      +/-   ##
==========================================
+ Coverage   39.34%   39.39%   +0.04%     
==========================================
  Files         139      139              
  Lines        3688     3691       +3     
  Branches      810      810              
==========================================
+ Hits         1451     1454       +3     
  Misses       2021     2021              
  Partials      216      216              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ShGKme ShGKme added this to the 8.8.2 milestone Feb 29, 2024
@juliushaertl juliushaertl modified the milestones: 8.8.2, 8.9.1 Mar 6, 2024
@Pytal Pytal modified the milestones: 8.9.1, 8.9.2 Mar 6, 2024
@ShGKme ShGKme modified the milestones: 8.9.2, 8.10.0, 8.10.1 Mar 8, 2024
@ShGKme ShGKme modified the milestones: 8.10.1, 8.11.0, 8.11.1 Mar 15, 2024
@Antreesy Antreesy modified the milestones: 8.11.1, 8.11.2 Mar 21, 2024
@Antreesy Antreesy modified the milestones: 8.11.2, 8.11.3 Apr 11, 2024
@Antreesy Antreesy modified the milestones: 8.11.3, 8.11.4 May 7, 2024
@susnux susnux modified the milestones: 8.11.4, 8.12.1 May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants