Skip to content

fix(files): keep reactivity when destructure store - #59942

Merged
susnux merged 2 commits into
masterfrom
fix/view-destructure
Apr 28, 2026
Merged

fix(files): keep reactivity when destructure store#59942
susnux merged 2 commits into
masterfrom
fix/view-destructure

Conversation

@susnux

@susnux susnux commented Apr 27, 2026

Copy link
Copy Markdown
Contributor

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

@susnux
susnux requested review from a team and skjnldsv as code owners April 27, 2026 16:32
@susnux
susnux requested review from nfebe and szaimen and removed request for a team April 27, 2026 16:32
@susnux susnux added bug 3. to review Waiting for reviews feature: files team: Files Code maintained by 📁 Files team labels Apr 27, 2026
@susnux susnux added this to the Nextcloud 34 milestone Apr 27, 2026
@susnux susnux added bug 3. to review Waiting for reviews feature: files team: Files Code maintained by 📁 Files team labels Apr 27, 2026
@susnux

susnux commented Apr 27, 2026

Copy link
Copy Markdown
Contributor Author

/backport to stable33

@susnux

susnux commented Apr 27, 2026

Copy link
Copy Markdown
Contributor Author

/compile

@susnux susnux mentioned this pull request Apr 27, 2026
@susnux

susnux commented Apr 27, 2026

Copy link
Copy Markdown
Contributor Author

/compile rebase

susnux and others added 2 commits April 27, 2026 18:09
- resolves #59941

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@susnux
susnux enabled auto-merge April 27, 2026 18:30
@susnux
susnux merged commit 0f762a0 into master Apr 28, 2026
131 checks passed
@susnux
susnux deleted the fix/view-destructure branch April 28, 2026 07:17
@nextcloud-bot nextcloud-bot mentioned this pull request Apr 30, 2026
This was referenced May 5, 2026
This was referenced May 12, 2026
ELHart05 added a commit to ELHart05/server that referenced this pull request Aug 12, 2026
FileEntryGrid destructured useActiveStore() directly, so activeFolder,
activeNode and activeView were plain snapshots taken when the entry was
first rendered. Opening a file from grid view therefore handed the file
actions a stale folder, and the viewer navigated the list to whichever
folder happened to be active back then: from a nested folder this drops
you at the root, or a level or two above, with the file open on top.

Same fix as nextcloud#59942, which covered FileEntry but left its grid counterpart
behind despite the "keep in sync with FileEntry.vue" note above it.

Signed-off-by: ELHart05 <o.allaoua@esi-sba.dz>
ELHart05 added a commit to ELHart05/server that referenced this pull request Aug 16, 2026
FileEntryGrid destructured useActiveStore() directly, so activeFolder,
activeNode and activeView were plain snapshots taken when the entry was
first rendered. Opening a file from grid view therefore handed the file
actions a stale folder, and the viewer navigated the list to whichever
folder happened to be active back then: from a nested folder this drops
you at the root, or a level or two above, with the file open on top.

Same fix as nextcloud#59942, which covered FileEntry but left its grid counterpart
behind despite the "keep in sync with FileEntry.vue" note above it.

Signed-off-by: ELHart05 <o.allaoua@esi-sba.dz>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug feature: files team: Files Code maintained by 📁 Files team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Viewer drops to parent when opening an image

4 participants