강의

멘토링

커뮤니티

Inflearn Community Q&A

thdehdgns1462's profile image
thdehdgns1462

asked

Creating NodeBird SNS with React

4-5. Controlling loops in Saga

yield put or put

Written on

·

195

2

take 다음에 put이 바로 실행되려면 중단점이 없어야(yield가 없어야) 되는 게 맞는 거 같은데 put앞에 yield가 굳이 필요한 이유는 무엇인가요?

javascriptreact

Answer 2

1

zerocho님의 프로필 이미지
zerocho
Instructor

yield가 put보다 나중입니다. put된 후 yield를 통해 다음으로 넘어간다고 생각하시면 됩니다. (await이라고 생각하세요)

0

Donghoon Song님의 프로필 이미지
Donghoon Song
Questioner

put이 effect를 바로실행해서 그런건가요?

thdehdgns1462's profile image
thdehdgns1462

asked

Ask a question