Your IP : 216.73.216.74


Current Path : /usr/local/lib/node_modules/@google/gemini-cli/node_modules/auto-bind/
Upload File :
Current File : //usr/local/lib/node_modules/@google/gemini-cli/node_modules/auto-bind/react.js

import autoBind from './index.js';

const excludedReactMethods = [
	'componentWillMount',
	'UNSAFE_componentWillMount',
	'render',
	'getSnapshotBeforeUpdate',
	'componentDidMount',
	'componentWillReceiveProps',
	'UNSAFE_componentWillReceiveProps',
	'shouldComponentUpdate',
	'componentWillUpdate',
	'UNSAFE_componentWillUpdate',
	'componentDidUpdate',
	'componentWillUnmount',
	'componentDidCatch',
	'setState',
	'forceUpdate',
];

export default function autoBindReact(self, {exclude = [], ...options} = {}) {
	options.exclude = [
		...exclude,
		...excludedReactMethods,
	];

	return autoBind(self, options);
}