็นๅปๆ้ฎ
loginOnPress=(๋งค๊ฐ๋ณ์)=>{
console.log(this.state.password)
this.props.dispatch({
์ ํ: '๋ฐ๋ชจ/getToken',
s hipNumber:this.state.shipNumber ,
๋น๋ฐ๋ฒํธ: this.state.password ,
์ ํ: this.state.phone ,
vCode:this.state.vCode ,
})
}
่ฟๆฏ๋ชจ๋ธ
์๋ ํ์ธ์ ๊ฐ์ ๋ฌธ์ ๊ฐ ๋ฐ์ํ์ต๋๋ค.
๋๋ ์ด ๋ฌธ์ ์ ๋ํ ํด๊ฒฐ์ฑ ์ด ์์ต๋๊น?
"yield put"์ ์ฌ์ฉํ์ฌ "yield call"์ด ์์๋๋ API๋ฅผ ์์ฒญํ๋ ๊ฒ ๊ฐ์ต๋๋ค.
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
"yield put"์ ์ฌ์ฉํ์ฌ "yield call"์ด ์์๋๋ API๋ฅผ ์์ฒญํ๋ ๊ฒ ๊ฐ์ต๋๋ค.