cgrand / enlivez

8 stars 0 forks source link

transact! in subscribers #3

Closed cgrand closed 5 years ago

cgrand commented 5 years ago

subscribers being run on the listener it means they can recursively trigger themselves. transactions should be postponed until the end of the meta listener. (.setTimeout 0) may well be enough.

cgrand commented 5 years ago

Should it even be allowed at all?

cgrand commented 5 years ago

I'm going to use a dynamic var to prevent running subscribers during such transact