Makes the thread return a simple boolean; almost as simple as just
returning %.y or %.n.
gcpManager now stores whether GCP is configured as a private variable.
Also fixes some type errors in gcp.
Typescript as of 3.7 understands null coalescing (??), but nullish
assignment (??=) is not available until 4.0.
This broke `npm run tsc`, preventing other type errors from showing up.
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.
Fixesurbit/landscape#691
Pull-hook side of the previous change to push-hook
(479fbfd798). Noop on unsupported
unversioned marks, waiting for the publisher to upgrade and kick. Same
tradeoffs as previous change apply.
* origin/mp/comments/background:
invites: prevent from flexshrinking closed on safari
commentItem: fix background on actions
Signed-off-by: Matilde Park <matilde.park@gmail.com>
Mainnet is currently experiencing undue load due to a watch-kick loop.
If the watch is unsupported, it will be kicked due to a mark mismatch,
which will be interpreted by the unversioned hooks as a network pressure
kick, prompting a resub and continuing the loop. Instead, we now no-op
on unversioned, unsupported watches, waiting for the subscriber to
rewatch after it processes the versioning OTA. This will silently break
groups for the subscriber until the reach the latest OTA, but is
preferable to nacking, and kicking them permanently