mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-12 15:01:38 +03:00
6da3877430
Now that the store is immutable, callbacks that close over props will see stale props because the reference is captured at instantiation. This was not an issue previously, because the references would be directly mutated. To remedy this, useRunIO has been added, which takes an async function to run for the actual network processing, and a second callback, which is able to see fresh props because it is not instantiated until the async callback has resolved successfully. Importantly, useRunIO does not resolve until the second callback has finished, preserving the semantics of the callback for Formik handlers and the like. Fixes urbit/landscape#691 |
||
---|---|---|
.. | ||
arvo | ||
docker-image | ||
ent | ||
ge-additions | ||
herb | ||
hs | ||
interface | ||
libaes_siv | ||
npm | ||
urbit |