Performance Improvements / version bumps #9175
gomesalexandre
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
TIL
<Profiler />
is fren<Suspense />
was "mis" used (only for one thing)lazy
, i.e lazy loading the component itself<Suspense />
is supported by react-query withuseSuspenseQuery
useDeferredValue()
+useTransition()
are frensuseDeferredValue()
:- defer initial long things e.g feat: blazingly fast activity tab #9122
- update search query immediately on users typing (using your
searchQuery
) but let the heavy bits be procesed later (react onconst deferredSearchQuery = useDeferredValue(searchQuery)
)useTransition()
:useTransition()
supports async functionsuseOptimistic()
for optimistic UI updatesuse()
for async functions directly in reactSuspense
improvementsAction Items
<Profiler />
it and feed it to CursorBeta Was this translation helpful? Give feedback.
All reactions