How to use the @aws-amplify/interactions.onComplete function in @aws-amplify/interactions

To help you get started, we’ve selected a few @aws-amplify/interactions examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github aws-amplify / amplify-js / packages / aws-amplify-react / src / Interactions / ChatBot.tsx View on Github external
componentDidMount() {
		const { onComplete, botName } = this.props;

		if (onComplete && botName) {
			if (!Interactions || typeof Interactions.onComplete !== 'function') {
				throw new Error(
					'No Interactions module found, please ensure @aws-amplify/interactions is imported'
				);
			}
			// @ts-ignore
			Interactions.onComplete(botName, this.getOnComplete(onComplete, this));
		}
	}
github aws-amplify / amplify-js / packages / aws-amplify-react / src / Interactions / ChatBot.tsx View on Github external
componentDidUpdate(prevProps) {
		const { onComplete, botName } = this.props;

		if (botName && this.props.onComplete !== prevProps.onComplete) {
			if (!Interactions || typeof Interactions.onComplete !== 'function') {
				throw new Error(
					'No Interactions module found, please ensure @aws-amplify/interactions is imported'
				);
			}
			// @ts-ignore
			Interactions.onComplete(botName, this.getOnComplete(onComplete, this));
		}
	}
github aws-amplify / amplify-js / packages / aws-amplify-react / src / Interactions / ChatBot.jsx View on Github external
componentDidMount() {
        const {onComplete, botName} = this.props;

        if(onComplete && botName) {
            if (!Interactions || typeof Interactions.onComplete !== 'function') {
                throw new Error('No Interactions module found, please ensure @aws-amplify/interactions is imported');
            }
            Interactions.onComplete(botName, this.getOnComplete(onComplete, this));
        }
    }
github aws-amplify / amplify-js / packages / aws-amplify-react / src / Interactions / ChatBot.jsx View on Github external
componentDidUpdate(prevProps) {
        const {onComplete, botName} = this.props;

        if (botName && this.props.onComplete !== prevProps.onComplete) {
            if (!Interactions || typeof Interactions.onComplete !== 'function') {
                throw new Error('No Interactions module found, please ensure @aws-amplify/interactions is imported');
            }
            Interactions.onComplete(botName, this.getOnComplete(onComplete, this));
        }
    }
github aws-amplify / amplify-js / packages / aws-amplify-react-native / src / Interactions / ChatBot.js View on Github external
componentDidMount() {
		const { onComplete, botName } = this.props;

		if (onComplete && botName) {
			Interactions.onComplete(botName, this.getOnComplete(onComplete, this));
		}
	}
github aws-amplify / amplify-js / packages / aws-amplify-react-native / src / Interactions / ChatBot.js View on Github external
componentDidUpdate(prevProps) {
		const { onComplete, botName } = this.props;

		if (botName !== prevProps.botName || onComplete !== prevProps.onComplete) {
			Interactions.onComplete(botName, this.getOnComplete(onComplete, this));
		}
	}

@aws-amplify/interactions

Interactions category of aws-amplify

Apache-2.0
Latest version published 12 days ago

Package Health Score

95 / 100
Full package analysis

Popular @aws-amplify/interactions functions

Similar packages