this.props.history.push('/') is getting executed even if there is an error

前端 未结 0 1524
再見小時候
再見小時候 2021-01-28 23:43

Even if there is an error in fetching data from firebase my router navigates to root component

axios.post(\'/orders.json\', order)
        .then(response => {
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题