Skip to content
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

Merged
merged 4 commits into from
Apr 11, 2021
Merged

Conversation

Tbaut
Copy link
Collaborator

@Tbaut Tbaut commented Apr 9, 2021

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.

@render
Copy link

render bot commented Apr 9, 2021

@render
Copy link

render bot commented Apr 9, 2021

@render
Copy link

render bot commented Apr 9, 2021

@Tbaut Tbaut changed the title Prevent the whole app from rerendering every 2s Prevent the whole app from rerendering every 5s Apr 9, 2021
…leSystemItemRow.tsx

Co-authored-by: Tanmoy Basak Anjan <tanmoy3399@gmail.com>
@Tbaut Tbaut added the Status: Review Needed 👀 Added to PRs when they need more review label Apr 9, 2021
@Tbaut Tbaut requested a review from tanmoyAtb April 9, 2021 20:37
Copy link
Contributor

@FSM1 FSM1 left a 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

Copy link
Contributor

@tanmoyAtb tanmoyAtb left a 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

Tbaut and others added 2 commits April 11, 2021 22:04
@Tbaut Tbaut merged commit 261e0fc into dev Apr 11, 2021
@Tbaut Tbaut deleted the mnt/tbaut-cleanup branch April 11, 2021 20:05
FSM1 added a commit that referenced this pull request Apr 12, 2021
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) …
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Review Needed 👀 Added to PRs when they need more review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants