-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prevent the whole app from rerendering every 5s #909
Conversation
Your Render PR Server URL is https://chainsafex-dev-pr-909.onrender.com. Follow its progress at https://dashboard.render.com/static/srv-c1o8e9ncq1ljd22n372g. |
Your Render PR Server URL is https://files-ui-dev-pr-909.onrender.com. Follow its progress at https://dashboard.render.com/static/srv-c1o8e9vcq1ljd22n3780. |
Your Render PR Server URL is https://files-landing-dev-pr-909.onrender.com. Follow its progress at https://dashboard.render.com/static/srv-c1o8eafcq1ljd22n37rg. |
packages/files-ui/src/Components/Modules/FileBrowsers/views/FileSystemItemRow.tsx
Outdated
Show resolved
Hide resolved
…leSystemItemRow.tsx Co-authored-by: Tanmoy Basak Anjan <tanmoy3399@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is 🔥 thanks for taking care of it all @Tbaut
packages/files-ui/src/Components/Modules/FileBrowsers/CSFFileBrowser.tsx
Outdated
Show resolved
Hide resolved
packages/files-ui/src/Components/Modules/FileBrowsers/views/FileSystemItemRow.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is awesome work ! :D
…leSystemItemRow.tsx
…rowser.tsx Co-authored-by: Tanmoy Basak Anjan <tanmoy3399@gmail.com>
Crash when going back after having selected Google auth #860 (PR #871) Login optimizations (PR #879) Minor fixes + Updates to color manipulator (#874) Merge pull request #879 from ChainSafe/fix/login-optimizations Merge pull request #887 from ChainSafe/fix/tbaut-hover-color Merge pull request #886 from ChainSafe/feat/tkey-darkmode Remove code duplication (#889) Merge pull request #895 from ChainSafe/fix/select-all-892 Merge pull request #896 from ChainSafe/fix/mouse-highlight-issue-890 Merge pull request #894 from ChainSafe/fix/mobile-spinner-893 Merge pull request #877 from ChainSafe/feat/tbaut-settings-security-846 folder validation (#899) saved browsers settings (#865) Prevent the whole app from rerendering every 5s (#909) Merge pull request #911 from ChainSafe/fix/share-transfer-modal-on-ta… … Merge pull request #905 from ChainSafe/fix/bin-file-view-873 … Merge pull request #906 from ChainSafe/feat/home-folder-nav-885 … Merge pull request #907 from ChainSafe/fix/search-bucket-to-reset-on-… Fix: Search results all show as files (#914) … Fix double click opening the next file preview (#915) … Rename tooltip and fixes (#912) …
In a failed attempt to figure out #884 I did a lot of cleanup to prevent many components to re-render needlessly.
The only logic change here is to check if the amount of
shareTransfer
changed before updating the state. We end up not refreshing the whole app every 5s because these events (new shareTransfer) actually happen rarely.The rest of this PR is bike shedding.