Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}
getChildContext() {
return {i18n: this.i18n};
}
render() {
return React.Children.only(this.props.children);
}
}
BundleSplitConsumer.contextTypes = {
splitComponentLoaders: PropTypes.array,
};
BundleSplitConsumer.childContextTypes = {
i18n: PropTypes.object.isRequired,
};
export default ProviderPlugin.create(
'i18n',
i18n,
BundleSplitConsumer
);
/** Copyright (c) 2018 Uber Technologies, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import {ProviderPlugin} from 'fusion-react';
import rpc, {mock as RPCMock} from 'fusion-plugin-rpc';
import type {RPCType, RPCDepsType} from 'fusion-plugin-rpc';
export default ProviderPlugin.create('rpc', rpc);
export const mock = ProviderPlugin.create('rpc', RPCMock);
/** Copyright (c) 2018 Uber Technologies, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import {ProviderPlugin} from 'fusion-react';
import rpc, {mock as RPCMock} from 'fusion-plugin-rpc';
import type {RPCType, RPCDepsType} from 'fusion-plugin-rpc';
export default ProviderPlugin.create('rpc', rpc);
export const mock = ProviderPlugin.create('rpc', RPCMock);
/** Copyright (c) 2018 Uber Technologies, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import type {
UniversalEventsDepsType,
UniversalEventsType,
} from 'fusion-plugin-universal-events';
import UniversalEvents from 'fusion-plugin-universal-events';
import {ProviderPlugin} from 'fusion-react';
export default ProviderPlugin.create<
UniversalEventsDepsType,
UniversalEventsType
>('universalEvents', UniversalEvents);