Skip to main content

Reflex Unexpected Duplicate

I have been interested in using Reflex FRP for quite some time, but I have been doing mostly backend development and have yet to work on a project that needed it. I am currently gearing up to start a new project, and I am excited to finally have a reason to dig into Reflex!

There is a tutorial linked from the homepage, so I decided to start with that. I like calculators! I read and digested the tutorial long before the build finished. That is not surprising, but I was then quite disappointed to find that it does not work! I get errors like the following, and the page becomes completely unresponsive.

Error : Unexpected Duplicate. syncCallbacks=True nBatch=3957 nExpected=3960

I found that Dennis Gosnell reported that (reflex-examples) examples don’t work on Firefox back in 2019. Obelisk uses JSaddle, which does not work on Firefox due to use of synchronous XHR, reported in the following issues in 2018.

I confirmed that the tutorial works fine when using Google Chrome, a browser that I prefer to avoid. Until it is resolved, this issue seems like a reason to not use JSaddle at all. Perhaps the tutorial can be changed to not use JSaddle? This question will probably be easy to answer once I am familiar with the Reflex FRP ecosystem, but it is not something that I should worry about now, so I am continuing with Chrome.

Author

Travis Cardwell

Published

Tags
Related Blog Entries