reactiveData icon indicating copy to clipboard operation
reactiveData copied to clipboard

RList.make_from_s cannot be used within update step

Open mfp opened this issue 10 years ago • 2 comments

make_from_s uses React.S.value, which can raise a Failure when executed within an update step. I haven't been able to define it using only React non-primitive operators. Even though coping out to a concurrency monad does work, it's not desirable here since it'd introduce a new dependency (and force the user's hand in deciding between Lwt/async/other).

Similarly, all the imperative operations on the handle are unsafe within an update step -- this should at least be documented.

mfp avatar Oct 15 '15 14:10 mfp

I just hit the same issue (the function is now named RList.from_signal). IMHO this is a serious issue, since it basically prevents in eliom to define a reactive element that creates reactive parts itself.

pveber avatar Jan 18 '18 06:01 pveber

@hhugo Do you have an idea about this?

balat avatar Jan 25 '18 11:01 balat