Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
React switch with newly created events.
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2009-12-23 (13:54)
From: Guillaume Yziquel <guillaume.yziquel@c...>
Subject: Re: React switch with newly created events.
Daniel Bünzli a écrit :
>> However, it may happen (and it does happen) that as soon as this new
>> React.event is created, an event is fired before the React.E.switch has been
>> executed to replace the old event by the new event.
> You are creating a new update cycle inside another update cycle and
> this is disallowed. No primitives are allowed to update in an update
> cycle (to be precise unless the primitive does not belong to the
> dependency graph of the update cycle).

No, this is not the case. There's only one update cycle. I was confused 
and sked the question too quickly. It works perfectly...

      Guillaume Yziquel