-
Notifications
You must be signed in to change notification settings - Fork 47.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
Move some files out of /shared and rename to upper case #18363
Conversation
…med exports We're somewhat inconsistent here between e.g. ReactLazy and memo. Let's pick one. This also moves the responder, fundamental, scope creators from shared since they're isomorphic and same as the other creators.
Individual renderers are allowed to deep require into the reconciler.
react-interactions is right now dom specific (it wasn't before) so we can type check it together with other dom stuff. Avoids the need for a shared ReactDOMTypes to be checked by RN for example.
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 c581aa3:
|
Details of bundled changes.Comparing: a600408...c581aa3 react-noop-renderer
react-reconciler
Size changes (stable) |
Details of bundled changes.Comparing: a600408...c581aa3 react-noop-renderer
react-reconciler
Size changes (experimental) |
Otherwise Noop can't access it since it's not allowed deep requires.
I believe the RN sync script pulls some bits out of shared, so we should make sure that those bits still work. However, it might only be |
Yea it's only ReactTypes and ReactNativeTypes. However, I'll separately open a diff to stop syncing ReactTypes. We shouldn't be using that in RN because it's not consistent with the upstream Flow types. That causes issues and all current imports were incorrect and has been codemodded so they're now unused. |
This moves some stuff out of shared and into their respective packages.
I changed the isomorphic "creator" types to use the same convention (upper case) with named exports. It was inconsistent before.
Things that are Fiber specific can live in the reconciler because any individual renderer is allowed to deep link into react-reconciler. At least ours are.