-
-
Notifications
You must be signed in to change notification settings - Fork 715
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Use of goog.async.nextTick prevents reagent from rendering #480
Comments
A related issue: #382 The main concern is that using |
Thanks for this, don't have a lot of time to dig into the nitty gritty details here at the moment though, but am interested in looking further at it. See also binaryage/cljs-devtools#20 (comment) for some more details on this area. |
Although Note The implementation of Therefore you will not see the same behaviour with Closing. |
Minimal complete example at https://github.com/zalky/re-demo (thanks, @zalky).
A bare-bones example that shows the root cause:
The issue is that
goog.async.nextTick
(used byre-frame.interop/next-tick
here) usesMessageChannel
which appears to be much faster on Google Chrome thanrequestAnimationFrame
that's used byreagent
to schedule renders.It makes the browser wait for multiple seconds before actually rendering stuff.
This comment #164 (comment) mentions that it may be useful to switch to promises. Not sure whether it's relevant here, just wanted to leave a reference.
The text was updated successfully, but these errors were encountered: