fix(desktop): show nested hidden files/folders when toggle is enabled#1214
fix(desktop): show nested hidden files/folders when toggle is enabled#1214Kitenite wants to merge 1 commit into
Conversation
Invalidate children cache for all expanded items (not just root) when toggling "Show Hidden Files", so nested hidden entries appear at every directory level. Fixes #1193
📝 WalkthroughWalkthroughThe Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Closing as stale: created in Jan-Mar with no recent activity. If still relevant, re-open or re-create from a fresh branch. Bulk audit 2026-05-06. |
Summary
tree.getState().expandedItems), not just root, so hidden entries appear at every directory level.Note on #1213
PR #1213 attempts to fix this by clearing
childrenCachein theuseFileTreehook, but that hook is not imported or used byFilesView.tsx. The active file tree uses@headless-tree/react'suseTreewithasyncDataLoaderFeaturedirectly, which has its own internal cache. This PR targets the correct code path.Test plan
folder/.hidden-subfolder)Summary by CodeRabbit