English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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