This repository has been archived by the owner on Dec 13, 2023. It is now read-only.
Introduce setState(fn) variant #33
Labels
feature: planned
A feature that's been accepted into the project's roadmap.
Milestone
In order to implement asynchronous rendering (#18), we need to make sure there's an API in place that mirror's React's
setState
variant that accepts a function.Dependent updates work just fine right now, which means this code that works today would not work with asynchronous rendering:
Instead, we should introduce a new API and encourage users to use it today:
Once work on async rendering begins, we can start catching cases where users call
setState
multiple times in a row synchronously to try to weed out dependent state mutations.The text was updated successfully, but these errors were encountered: