You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: flash when flipping to/from previewing item (#2437)
* [2406] bug: flash when flipping to/from previewing item
* fix: hide addFilesInfo while files are loading
prevents flash when navigating to directory or closing file preview by checking filesIsFetching state before rendering addFilesInfo component
* fix: prevent flash when navigating in files view
- 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
* refactor: return null instead of empty div
replace empty <div/> returns with null for better React
practices - no unnecessary DOM nodes, better performance,
clearer intent
---------
Co-authored-by: Suchitra Swain <suchitraswain.2012gmail.com>
Co-authored-by: Marcin Rataj <lidel@lidel.org>
0 commit comments