function register(id, component, context) {
	if (!component) {
		invariant(
			process.env.NODE_ENV === 'production',
			'You cannot register undefined as a component for id "%s"',
			id,
		);
		return;
	}
	registry.addToRegistry(`${CONST.REGISTRY_COMPONENT_PREFIX}:${id}`, component, context);
	if (component.actions) {
		actionCreator.registerMany(component.actions, context);
	}
	if (component.expressions) {
		expression.registerMany(component.expressions, context);
	}
	if (component.sagas) {
		sagas.registerMany(component.sagas, context);
	}
}
/**
 * register a component to let CMF be able to Inject it.
 * @param  {string} id the component id you want to register
 * @param  {any} component the component you want to register
 * @param  {object} context optional context to get the registry
 */
register a component to let CMF be able to Inject it.
@param  {string} id the component id you want to register
@param  {any} component the component you want to register
@param  {object} context optional context to get the registry
register a component to let CMF be able to Inject it . @param { string } id the component id you want to register @param { any } component the component you want to register @param { object } context optional context to get the registry
function register(id, component, context) {
	if (!component) {
		invariant(
			process.env.NODE_ENV === 'production',
			'You cannot register undefined as a component for id "%s"',
			id,
		);
		return;
	}
	registry.addToRegistry(`${CONST.REGISTRY_COMPONENT_PREFIX}:${id}`, component, context);
	if (component.actions) {
		actionCreator.registerMany(component.actions, context);
	}
	if (component.expressions) {
		expression.registerMany(component.expressions, context);
	}
	if (component.sagas) {
		sagas.registerMany(component.sagas, context);
	}
}
function register ( id , component , context ) { if ( ! component ) { invariant ( process . env . NODE_ENV === 'production' , 'You cannot register undefined as a component for id "%s"' , id , ) ; return ; } registry . addToRegistry ( ` ${ CONST . REGISTRY_COMPONENT_PREFIX } ${ id } ` , component , context ) ; if ( component . actions ) { actionCreator . registerMany ( component . actions , context ) ; } if ( component . expressions ) { expression . registerMany ( component . expressions , context ) ; } if ( component . sagas ) { sagas . registerMany ( component . sagas , context ) ; } }
register a component to let CMF be able to Inject it.
register a component to let CMF be able to Inject it .