-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Internalize useSyncExternalStore
shim, for more control than use-sync-external-store
provides
#9675
Merged
Commits on May 9, 2022
-
Configuration menu - View commit details
-
Copy full SHA for c26f999 - Browse repository at this point
Copy the full SHA c26f999View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9c2fb4f - Browse repository at this point
Copy the full SHA 9c2fb4fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7392a1d - Browse repository at this point
Copy the full SHA 7392a1dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6ab7750 - Browse repository at this point
Copy the full SHA 6ab7750View commit details -
Configuration menu - View commit details
-
Copy full SHA for c5734a9 - Browse repository at this point
Copy the full SHA c5734a9View commit details -
Disable canUseDOM only when window.document comes from JSDOM.
I believe this is a more precise change than my previous commit, which used isNode to determine canUseDOM. In most server-side rendering setups, there will be no window.document.createElement, so canUseDOM will already be false for that reason. It's only in Node.js environments using jsdom that window.document.createElement might seem to be defined, so that's the only case we really need to check.
Configuration menu - View commit details
-
Copy full SHA for 4edd24c - Browse repository at this point
Copy the full SHA 4edd24cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 18528ed - Browse repository at this point
Copy the full SHA 18528edView commit details -
Configuration menu - View commit details
-
Copy full SHA for 11cdb96 - Browse repository at this point
Copy the full SHA 11cdb96View commit details -
Configuration menu - View commit details
-
Copy full SHA for 94b408a - Browse repository at this point
Copy the full SHA 94b408aView commit details -
Enforce real useSyncExternalStore type signature.
This should mean we'll find out if anything changes in the types of @types/use-sync-external-store that conflicts with how we use our wrapper of the useSyncExternalStore hook.
Configuration menu - View commit details
-
Copy full SHA for 4fa40ec - Browse repository at this point
Copy the full SHA 4fa40ecView commit details -
Configuration menu - View commit details
-
Copy full SHA for d0a0545 - Browse repository at this point
Copy the full SHA d0a0545View commit details
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.