Set isRemixing to true and then start remixing process

This makes it feel snappier to start the remixing project because it does not wait for the GUI to notify
This commit is contained in:
Paul Kaplan 2018-12-19 15:58:38 -05:00
parent d13a773f7c
commit 137015cfc0

View file

@ -446,7 +446,10 @@ class Preview extends React.Component {
}
}
handleRemix () {
this.props.remixProject();
// Update the state first before starting the remix to show spinner
this.setState({isRemixing: true}, () => {
this.props.remixProject();
});
}
handleSeeInside () {
this.setState({ // Remove any project alerts so they don't show up later