urbit/pkg
Liam Fitzgerald 6da3877430
Invite: fix stale props in inviteAccept callback
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
2021-04-06 15:50:21 +10:00
..
arvo Merge remote-tracking branch 'origin/master' into lf/push-hook-unver 2021-04-03 12:54:35 +11:00
docker-image build: Build docker image and publish to Docker Hub 2021-01-13 12:36:45 -05:00
ent build: rework all nix expressions to support hercules-ci builds 2020-10-27 13:55:49 +01:00
ge-additions build: rework all nix expressions to support hercules-ci builds 2020-10-27 13:55:49 +01:00
herb herb/lens: add utilites for import/export 2020-12-01 00:00:49 -08:00
hs urbit: bumps version to 1.3 2021-04-01 15:33:14 -07:00
interface Invite: fix stale props in inviteAccept callback 2021-04-06 15:50:21 +10:00
libaes_siv build: rework all nix expressions to support hercules-ci builds 2020-10-27 13:55:49 +01:00
npm Post: update permissions to support admins properly 2021-04-02 11:48:38 +10:00
urbit urbit: bumps version to 1.3 2021-04-01 15:33:14 -07:00