Skip to content

Conversation

SuchitraSwain
Copy link
Contributor

@SuchitraSwain SuchitraSwain commented Sep 17, 2025

@SuchitraSwain
Copy link
Contributor Author

@SgtPooki @alikhere Please review the PR

@SuchitraSwain
Copy link
Contributor Author

@SgtPooki @alikhere Please review the PR

@lidel lidel self-assigned this Sep 26, 2025
prevents flash when navigating to directory or closing file preview by checking filesIsFetching state before rendering addFilesInfo component
- add path guard to prevent rendering stale directory content
  during navigation
- only re-sort content when new data arrives, not during
  fetch initialization
- merge duplicate useEffect in grid-file to eliminate race
  condition
- remove obsolete key from commonProps
- hide empty state message at root to avoid duplicate with
  addFilesInfo
- change empty state color to charcoal-muted for consistency
- make empty state messages non-selectable with noselect
- add isRoot to filesPathInfo TypeScript interface
@lidel lidel changed the title [2406] bug: flash when flipping to/from previewing item fix: flash when flipping to/from previewing item Sep 26, 2025
replace empty <div/> returns with null for better React
practices - no unnecessary DOM nodes, better performance,
clearer intent
Copy link
Member

@lidel lidel left a comment

Choose a reason for hiding this comment

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

Thank you @SuchitraSwain.

Pushed some additional fixes which should limit UI flashing / redraws even further.

@lidel lidel merged commit c14b38a into ipfs:main Sep 26, 2025
20 checks passed
ipfs-gui-bot pushed a commit that referenced this pull request Sep 26, 2025
## [4.9.1](v4.9.0...v4.9.1) (2025-09-26)

 CID `bafybeicg7e6o2eszkfdzxg5233gmuip2a7kfzoloh7voyvt2r6ivdet54u`

 ---

### Bug Fixes

* flash when flipping to/from previewing item ([#2437](#2437)) ([c14b38a](c14b38a))
* overlay click does not close modals ([#2428](#2428)) ([f239113](f239113))
* prevent redirect when navigating to retrieval-check ([#2439](#2439)) ([bd11b0c](bd11b0c))
@ipfs-gui-bot
Copy link
Collaborator

🎉 This PR is included in version 4.9.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: flash when flipping to/from previewing item

3 participants