mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-09-21 15:38:59 +03:00
6f7ed005ae
A callback ref is called after the component is mounted, but before the component is unmounted. However, we might still be adjusting scroll position based on a component that is going to be remounted. Previously, we delayed the deletion until the next tick with setTimeout. With the faster ordered map implementation, the component may be remounted before the next tick, leading to the deletion of a ref that is still mounted. To work around this, we store a set of 'orphans' and clear the map of orphans on an interval, and only clear the map if we are not currently adjusting our scroll position. Also includes fixes for jumpy scroll behaviour on initial mount. |
||
---|---|---|
.. | ||
arvo | ||
docker-image | ||
ent | ||
ge-additions | ||
herb | ||
hs | ||
interface | ||
libaes_siv | ||
npm | ||
urbit |