Skip to content

Conversation

@st3iny
Copy link
Member

@st3iny st3iny commented Aug 13, 2025

  • Resolves: none

Summary

Before: Related resources are loaded twice each time the sharing sidebar is open.
After: Is only loaded once.

I noticed that the first parameter of the section callback (el) is always undefined. This has been the case since January and it is not used inside any app in the Nextcloud org.

Checklist

@st3iny st3iny requested a review from a team as a code owner August 13, 2025 16:04
@st3iny st3iny requested review from skjnldsv, susnux and szaimen and removed request for a team August 13, 2025 16:04
@st3iny st3iny self-assigned this Aug 13, 2025
@st3iny st3iny added this to the Nextcloud 32 milestone Aug 13, 2025
@github-project-automation github-project-automation bot moved this to 🏗️ In progress in 💌 📅 👥 Groupware team Aug 13, 2025
@nextcloud nextcloud deleted a comment from st3iny Aug 13, 2025
@st3iny st3iny force-pushed the perf/render-sharing-tab-sections-only-once branch from 358ac7a to cb0e8e8 Compare August 13, 2025 16:14
@st3iny st3iny requested a review from a team as a code owner August 13, 2025 16:14
szaimen

This comment was marked as resolved.

@st3iny st3iny force-pushed the perf/render-sharing-tab-sections-only-once branch from cb0e8e8 to 9d5819b Compare August 13, 2025 16:21
Comment on lines -134 to +133
<component :is="section($refs['section-'+index], fileInfo)" :file-info="fileInfo" />
<component :is="component" :file-info="fileInfo" />
Copy link
Member Author

@st3iny st3iny Aug 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The problem was here. The section callback was executed twice during render. Now it is cached via a computed property.

Copy link
Contributor

@szaimen szaimen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, saw it working on Richards PC in the related resources app and group folders app :)

@st3iny st3iny force-pushed the perf/render-sharing-tab-sections-only-once branch from d6bd320 to 798f373 Compare August 13, 2025 18:10
Copy link
Member

@skjnldsv skjnldsv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code make sense, nice catch

@szaimen szaimen merged commit ec3be25 into master Aug 13, 2025
132 of 136 checks passed
@szaimen szaimen deleted the perf/render-sharing-tab-sections-only-once branch August 13, 2025 20:59
@github-project-automation github-project-automation bot moved this from 🏗️ In progress to ☑️ Done in 💌 📅 👥 Groupware team Aug 13, 2025
@skjnldsv skjnldsv mentioned this pull request Aug 19, 2025
@skjnldsv skjnldsv modified the milestones: Nextcloud 32, Nextcloud 33 Sep 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: ☑️ Done

Development

Successfully merging this pull request may close these issues.

4 participants