-
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
Pass suspense config to startTransition
instead of useTransition
#17309
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit d6db4ec:
|
Details of bundled changes.Comparing: 8e74a31...d6db4ec react-reconciler
react-dom
react-art
react-test-renderer
react-native-renderer
ReactDOM: size: -0.1%, gzip: -0.1% Size changes (stable) |
Details of bundled changes.Comparing: 8e74a31...d6db4ec react-native-renderer
react-test-renderer
react-dom
react-art
react-reconciler
ReactDOM: size: 0.0%, gzip: 0.0% Size changes (experimental) |
Wanna update the docs? 😄 |
j/k. I can do it. |
af4855c
to
b5bd7c8
Compare
@gaearon Not sure if we've reached consensus on the API change yet, just preparing this PR for when we do. But yeah I was planning to update the docs once it lands :) |
b5bd7c8
to
41da7f1
Compare
...instead of `useTransition`. This avoids the problem of having to bind the config object to `startTransition`, invalidating downstream memoizations.
41da7f1
to
d6db4ec
Compare
Haven't abandoned this. Still need to decide on final API. |
Closed by #19703 |
This avoids the problem of having to bind the config object to
startTransition
, invalidating downstream memoizations.See #17284 for more details.
I'll need to codemod the existing callers in www, but that's not a blocker because www uses a userspace fork.