Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
componentDidMount() {
const { configuration, id } = this.props;
schemaToMocks(
makeParams({
makeArticle: makeArticle(configuration),
variables: () => ({
id
})
})
).then(mocks => this.setState({ mocks }));
}
() =>
schemaToMocks(
makeParams({
makeArticle: makeArticle(configuration),
variables: () => ({
id
})
})
).then(mocks => this.setState({ mocks, reRendering: false }))
);