This nails down to the use of S.from' [] p. This is a signal that holds value [] until Lwt promise p resolves and then holds the value returned by p. What I would want instead is a signal that keeps its previous value until Lwt promise p resolves and then holds the value returned by p. This is slighlty different. In the current situation, the signal goes back to [] every time before getting its new value, causing the flicker.
This nails down to the use of
S.from' [] p
. This is a signal that holds value[]
until Lwt promisep
resolves and then holds the value returned byp
. What I would want instead is a signal that keeps its previous value until Lwt promisep
resolves and then holds the value returned byp
. This is slighlty different. In the current situation, the signal goes back to[]
every time before getting its new value, causing the flicker.