mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-10-09 15:58:34 +00:00
77a80f6dcb
The useEffect that triggers loadFiles with force:true was running on every navigation because currentPath was in its dependencies. This caused redundant SFTP list calls that bypassed caching. Now we track the previous encoding with a ref and only force reload when filenameEncoding actually changes, not on every path change. Regular navigation still works through useSftpModalSession's own path change handling. Co-Authored-By: Claude <noreply@anthropic.com>