Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
getOptions = () => {
let parent = this.props.parentUIView;
let parentContext = (parent && parent.context) || this.props.router.stateRegistry.root();
let defOpts = { relative: parentContext, inherit: true };
return extend(defOpts, this.props.options || {});
};