-
Notifications
You must be signed in to change notification settings - Fork 46.9k
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
[Umbrella] Releasing Time Slicing #13306
Comments
Thanks for creating this!
I can pick up that work again next week. |
@flarnie Feel free to edit :-) |
hi @gaearon, questions:
|
The |
Summary: The async mode unstable API deferredUpdates was removed in React 16.5.0 with facebook/react#13488 As discussed there, the alternative workaround is to simply use requestIdleCallback or requestAnimationFrame. Once a better API is released (tracking facebook/react#13306) we can use that instead for deferred async updates. Reviewed By: hansonw Differential Revision: D9814299 fbshipit-source-id: 8848cf05cd11ffba65b6d87233e2f5205121179b
Will offscreen api work with fragments? Like this <React.Fragment hidden={!visible}>
{content}
</React.Fragment> |
@TrySound IIRC, React doesn't support any attribute on Fragment except one or two special(I don't remember)? |
@NE-SmallTown I know that |
I think this needs updated since the latest release? At least it seems so from https://reactjs.org/blog/2018/10/23/react-v-16-6.html#scheduler-experimental ? |
Summary: The async mode unstable API deferredUpdates was removed in React 16.5.0 with facebook/react#13488 As discussed there, the alternative workaround is to simply use requestIdleCallback or requestAnimationFrame. Once a better API is released (tracking facebook/react#13306) we can use that instead for deferred async updates. Reviewed By: hansonw Differential Revision: D9814299 fbshipit-source-id: 8848cf05cd11ffba65b6d87233e2f5205121179b
Yesterday, we announced the plan for React 18 and released React 18 Alpha. In React 18, time slicing will be opt-in rather than on by default. The way you opt into it is with Since time slicing is essentially implemented, I am closing this issue. Please refer to the blog post for more information about the release, including the projected timeline. Thank you for bearing with us on this journey. |
Let's use this to track what's missing before Time Slicing is usable internally and in open source.
(Note: the list below is very outdated and doesn't reflect the actual amount of work that went into this)
Initial release (MVP)
Core
unstable_deferredUpdates
not being respected in interactive event handlers (reproducible in the fixture) Remove buggy unstable_deferredUpdates() #13488<div hidden>
APIScheduler
react-dom
depend on it, and publish it in open source (@flarnie, others internally)Related: Suspense Umbrella (#13206)
The text was updated successfully, but these errors were encountered: