Skip to content

examples don't work on firefox #30

@cdepillabout

Description

@cdepillabout

Since updating reflex-examples to use Obelisk to run/build the examples, it looks like the examples have stopped working on Firefox.

The last commit I could find that works on Firefox is fc13182. The next few commits after that change over to use Obelisk (5825358, d18bc83, db4673f, etc). The examples stop working in Firefox at this time.

The current master also seems to be broken in Firefox.

Here's what I'm trying to do and what happens:

  1. Run ob run in order to run the examples. Eventually it says Frontend running on http://localhost:8000/ on the console.

  2. I open http://localhost:8000 in Firefox. This displays a page that looks just like https://examples.reflex-frp.org/.

  3. However, in my terminal, I get the following message:

    Error : Unexpected Duplicate. syncCallbacks=True nBatch=2 nExpected=4
    

    Note that this is in the console where I've run ob run (not Firefox's Javascript console).

    Sometimes I get this message immediately. Sometimes it only shows up after clicking Basic To Do List. Sometimes I am able to successfully click the Basic To Do List link without seeing the error. A similar thing happens if I just immediately go to http://localhost:8000/examples/basictodo and try to enter text.

  4. I don't see any errors in the browser console.

  5. At this point the browser becomes unresponsive and no links respond to click. I can't do anything here.

I also tried running nix-build and opening ./result/ghcjs/frontend/bin/frontend.jsexe/index.html directly in Firefox, but nothing shows on the screen.

Pinging @dfordivam.


However, for some reason I don't seem to have any problem with the https://examples.reflex-frp.org site, so I'm not sure what is going on here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions