Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
*
* When a @uirouter/react `` is rendered (from react code),
* it renders first to an AngularJS `` component,
* inside the `ui-view` is an AngularJS ``,
* which finally renders a real @uirouter/react ``:
*
*
*
*
*
*
*
*
*/
UIView.prototype.render = function() {
if (this.props.wrap === false) {
const id = `${this.$id}/${this.props['name']}`;
debugLog('react', 'UIViewMonkeyPatch', id, '.render()', 'realRender.apply(this, arguments)');
return realRender.apply(this, arguments);
}
return ;
};
import * as React from 'react';
import { UIView } from '@uirouter/react';
import { debugLog } from '../debug';
import { PortalView } from './PortalView';
const realRender = UIView.prototype.render;
/**
* Monkey patches the @uirouter/react UIView such that:
*
* When a @uirouter/react `` is rendered (from react code),
* it renders first to an AngularJS `` component,
* inside the `ui-view` is an AngularJS ``,
* which finally renders a real @uirouter/react ``:
*
*
*
*
*
*
*
*