mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-17 00:21:20 -05:00
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:
parent
d13a773f7c
commit
137015cfc0
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue