Dang, that's a fairly simple way to explain it. Well done.
When you said...
This timer starts when we first buy the apple and waits a whole week:
const weekInMilliseconds = 1000 * 60 * 60 * 24 * 7; setTimeout(() => { store.dispatch(WAIT); }, weekInMilliseconds)
I think you may have a typo where you used WAIT instead of ROT, which you defined earlier. If that's the case, you also reference it here:
WAIT
ROT
Oh, right — we used setTimeout to wait for a week. Once that resolves, the WAIT action is dispatched and the resulting apple is this:
If not, never mind me.
Cheers!
Oh, you are correct. I did rename the action at one point and missed a few spots. Thanks!
Happy to help. :)
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Dang, that's a fairly simple way to explain it. Well done.
When you said...
I think you may have a typo where you used
WAIT
instead ofROT
, which you defined earlier. If that's the case, you also reference it here:If not, never mind me.
Cheers!
Oh, you are correct. I did rename the action at one point and missed a few spots. Thanks!
Happy to help. :)