Open nrryuya opened 5 years ago
Maybe it is a better way to use componentDidMount(). (https://reactjs.org/docs/react-component.html#componentdidmount)
componentDidMount()
compile
now compiling...
{compiling: true}
render()
(and set {compiling: false} in the appropriate place)
{compiling: false}
ref: https://dev.to/sadarshannaiynar/react---asynchronous-component-rendering-wrapper-2pmo
Maybe it is a better way to use
componentDidMount()
. (https://reactjs.org/docs/react-component.html#componentdidmount)compile
buttonnow compiling...
componentDidMount()
is called)componentDidMount()
, set{compiling: true}
to react staterender()
is called again){compiling: true}
is set, make http post request to vyper-serve(and set
{compiling: false}
in the appropriate place)ref: https://dev.to/sadarshannaiynar/react---asynchronous-component-rendering-wrapper-2pmo