mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
7b25b961df
* [Fizz/Float] Float for stylesheet resources This commit implements Float in Fizz and on the Client. The initial set of supported APIs is roughly 1. Convert certain stylesheets into style Resources when opting in with precedence prop 2. Emit preloads for stylesheets and explicit preload tags 3. Dedupe all Resources by href 4. Implement ReactDOM.preload() to allow for imperative preloading 5. Implement ReactDOM.preinit() to allow for imperative preinitialization Currently supports 1. style Resources (link rel "stylesheet") 2. font Resources (preload as "font") later updates will include support for scripts and modules
27 lines
506 B
JavaScript
27 lines
506 B
JavaScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @flow
|
|
*/
|
|
|
|
type InternalsType = {
|
|
usingClientEntryPoint: boolean,
|
|
Events: [any, any, any, any, any, any],
|
|
Dispatcher: {
|
|
current: mixed,
|
|
},
|
|
};
|
|
|
|
const Internals: InternalsType = ({
|
|
usingClientEntryPoint: false,
|
|
Events: null,
|
|
Dispatcher: {
|
|
current: null,
|
|
},
|
|
}: any);
|
|
|
|
export default Internals;
|