-
Notifications
You must be signed in to change notification settings - Fork 326
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
Fix React Compiler lints + improve performance #11450
Merged
Merged
Changes from 81 commits
Commits
Show all changes
87 commits
Select commit
Hold shift + click to select a range
bf7bdea
Batch refetches for different `listDirectory` queries
MrFlashAccount 855a199
Smarter memoization for `AssetRow`
somebody1234 ff06b1d
Remove `visibility` from Assets Table state
somebody1234 1ad4449
Remove `AssetTreeNode.createdAt`
somebody1234 28b93cb
Avoid memoizing `AssetRow`
somebody1234 a6e49e4
Replace `AssetTreeNode` with `AnyAsset` in `AssetRow`
somebody1234 edbf46d
Fix item memoization
somebody1234 4160c57
Fix errors
somebody1234 8f9689b
Fix `deepEqual`
somebody1234 8e13e77
Remove memoization of `useAssetPassiveListener` return value
somebody1234 11cc6a3
Merge branch 'develop' into wip/sb/optimize-asset-table-rendering
somebody1234 d940a87
Use `fast-deep-equal` for `deepEqual`
somebody1234 19d15c9
Fix `react-compiler` lints
somebody1234 a053cfe
Remove `fast-deep-equal`
somebody1234 f767299
Remove unnecessary React Compiler deoptimizations
somebody1234 550449c
Fix lints
somebody1234 fd5ca26
Revert "Fix lints"
somebody1234 7978c13
Revert "Remove unnecessary React Compiler deoptimizations"
somebody1234 5b6a043
Revert "Fix `react-compiler` lints"
somebody1234 35b692d
Reapply "Fix `react-compiler` lints"
somebody1234 0653ef8
Reapply "Remove unnecessary React Compiler deoptimizations"
somebody1234 f72c67a
Reapply "Fix lints"
somebody1234 1c317b4
Merge branch 'develop' into wip/sb/fix-react-compiler-lints
somebody1234 cfc0e0a
Fix `useForm`
somebody1234 e3aca44
Remove unnecessary lint disable in `scrollHooks`
somebody1234 175b935
Remove more unnecessary lint disables
somebody1234 2dddd33
Minor fixes
somebody1234 2c015c4
Remove `react-compiler` lint suppression in `FocusArea.tsx`
somebody1234 b320c80
Clean up `FocusArea.tsx`
somebody1234 e27db30
Merge branch 'develop' into wip/sb/fix-react-compiler-lints
somebody1234 4796e3b
Type-safe login form
somebody1234 1c7f2ba
Remove unnecessary docs
somebody1234 86ea698
Merge branch 'develop' into wip/sb/fix-react-compiler-lints
somebody1234 0399f1b
Revert changes to `useForm`
somebody1234 9644eee
Tiny improvements
MrFlashAccount df4559b
FIx some pref issues
MrFlashAccount 5f9b0e9
Tiny, but noticable perf improvements
MrFlashAccount b0aa5e2
use transitions
MrFlashAccount 67330cb
Tiny perf impr x2
MrFlashAccount 2eb6f3d
Tiny fixes
MrFlashAccount 9b8fe6d
THings
MrFlashAccount bdde9a2
fix types
MrFlashAccount a70e3b1
Significant improvement in rerendering the Assets Table
MrFlashAccount bca2409
Improve overall performance
MrFlashAccount bdbac7f
Improve perf
MrFlashAccount 26edac1
Fixes
MrFlashAccount e4b7082
Fix some React Compiler errors
somebody1234 f9ef8f2
Remove section headers from `AssetsTable`
somebody1234 1809cf3
Apply TypeScript suggested refactor
somebody1234 957cb2e
Remove unnecessary `useSingleUnmount` - refs are called with `null` f…
somebody1234 a30d8b8
Fix `AssetRow`
somebody1234 45aecb7
Refactor out `assetTree` query
somebody1234 752e024
Refactor out `useDirectoryIds`
somebody1234 f16b8ff
Refactor out `useAssetsTableItems`
somebody1234 32afbd4
Memoize TanStack Query mutations in `useUploadFileWithToastMutation`
somebody1234 aea7f5b
Prettier
somebody1234 cb08bc0
Improve expand and collapse perf
MrFlashAccount 6f91ddf
Prettify
MrFlashAccount bd776b4
Fixes
MrFlashAccount 54e1dfc
Fix prettier
MrFlashAccount a50c6cb
fixes
MrFlashAccount a3828f7
Prettier
somebody1234 a4cc854
Improve performace a little bit
MrFlashAccount 1b76348
Small fixes x2
MrFlashAccount 1c9688b
Fix directory icon arrow rotation
somebody1234 245e76c
fix lint
MrFlashAccount 4487533
fix lints
MrFlashAccount ae5abe2
Fix icons
MrFlashAccount 88c6dcc
Prettier
somebody1234 462748e
Fix overfetching
MrFlashAccount b6fc635
fix tests
MrFlashAccount d1ec9d1
fix lint
MrFlashAccount 579399d
fix button
MrFlashAccount 08a67bf
Merge branch 'develop' into wip/sb/fix-react-compiler-lints
somebody1234 8d9201c
Merge branch 'develop' into wip/sb/fix-react-compiler-lints
somebody1234 7724e29
Merge branch 'develop' into wip/sb/fix-react-compiler-lints
mergify[bot] 7309288
Fix localstorage race conditions
MrFlashAccount 757ac7b
Fix types
MrFlashAccount d8722cd
Fix prettier
MrFlashAccount 38df45e
Fix eslint
MrFlashAccount a5f000b
Merge branch 'develop' into wip/sb/fix-react-compiler-lints
somebody1234 38e201e
Merge branch 'develop' into wip/sb/fix-react-compiler-lints
somebody1234 4059288
Merge branch 'develop' into wip/sb/fix-react-compiler-lints
mergify[bot] b7da0cf
Named imports for `Button`
somebody1234 fd9555a
Merge branch 'develop' into wip/sb/fix-react-compiler-lints
somebody1234 6eb7541
Named imports for `Button`
somebody1234 27efdfd
Memoize `Button`
somebody1234 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Does it mean that we never update queried data? It may be a problem for our cloud browser, which won't be refreshed after putting a new file to cloud directory.
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.
It's a temporary solution to avoid ton of setTimeout calls during subscribe
Instead of setting stale time we now have a query that mark all queries as stale each 2 minutes.
Worth noting that marking query as stale doesn't mean that it will be refetched immidiately.
Also if we use the same cache and queries across dashboard and project-view, we'll have a consistent state between vue and react
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.
More contex is here: https://x.com/mrflashaccount/status/1857881760110952926?s=46
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.
Then it's a good idea to leave comment about it here.
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.
We'll remove it once react-query landed a fix (they already opened a PR)