Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Changed `counter.double` to read `double.value`.
  • Loading branch information
kim3er authored Sep 7, 2022
1 parent 1140bef commit c3cfd3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ batch(() => {
counter.value = 1;
// Logs: 2, despite being inside batch, but `tripple`
// will only update once the callback is complete
console.log(counter.double);
console.log(double.value);
});
// Now we reached the end of the batch and call the effect
```
Expand Down

0 comments on commit c3cfd3f

Please sign in to comment.