Closed fikriauliya closed 7 years ago
Ran into this too, I was convinced it was a bug until I took a look at the reason-react todomvc example and realized update needs to be specified as a parameter haha.
And yes thanks so much for putting this together, this tutorial and the others you've put up have been helping me a lot!
I ran into the same thing but was trying to figure out how to fix it. Thanks for posting the solution here @fikriauliya & @gandulio!
fixed, finally 😅
First of all, thx for the tutorial!
I was a little bit confused on step 1_3 because of the
unbounded update error
. Based on the screen shot above, the only expected diffs from step 1_2 are those 10 lines. But in fact, there is a change onrender
fun parameter as well:from
fun {state: {items}}
tofun {state: {items}, update}
It would be clearer if the snippet for 1_3 is to be expanded up, at least up to the
render
method signature.