reflex-frp / reflex-examples Goto Github PK
View Code? Open in Web Editor NEWSee Reflex FRP in action with tinker-friendly code samples you can run yourself.
Home Page: https://reflex-frp.org
License: BSD 3-Clause "New" or "Revised" License
See Reflex FRP in action with tinker-friendly code samples you can run yourself.
Home Page: https://reflex-frp.org
License: BSD 3-Clause "New" or "Revised" License
How much relevance do the examples bear for the soon-to-be released version 0.5?
ob run
stops with
Ok, 19 modules loaded.
Loaded GHCi configuration from /run/user/1000/ob-ghci-ea5f1d2755776854/.ghci
What next?
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:
Run ob run
in order to run the examples. Eventually it says Frontend running on http://localhost:8000/
on the console.
I open http://localhost:8000 in Firefox. This displays a page that looks just like https://examples.reflex-frp.org/.
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.
I don't see any errors in the browser console.
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.
After freshly cloning this repo I get the following error:
>>> git clone https://github.com/reflex-frp/reflex-examples.git
Cloning into 'reflex-examples'...
remote: Enumerating objects: 1637, done.
remote: Total 1637 (delta 0), reused 0 (delta 0), pack-reused 1637
Receiving objects: 100% (1637/1637), 2.14 MiB | 875.00 KiB/s, done.
Resolving deltas: 100% (681/681), done.
>>> cd reflex-examples
>>> ob run
./.obelisk/impl: command not cached, building ...
DONE Built on ./.obelisk/impl [command]
Process exited with code 1; 'nix' 'eval' '-f' '.' '(let a = import ./. {}; in toString (a.reflex.nixpkgs.lib.isDerivation a.passthru.staticFilesImpure))' '--raw'
What should I do?
When I did this for the first time there where many build actions that were performed successfully before ob run finally failed. Nut I cannot reproduce the successful actions and messages. I hope these are not relevant?
Hi,
I was looking at some of the online examples, however the ToDo App does not seem to be properly formatted:
Browser is Chrome Version 78.0.3904.108 (Official Build) (64-bit)
In general, a lot of the examples could be more ... appealing ๐
Especially I think the very first sample should look cool. I very much like the Peg Solitaire, even though I don't know how to play it. ๐
Edit: #28 seems to be solving this
This repo does not have a license. I would like to refer to some of this code in a proprietary project. Would it be possible to add a permissive one (BSD, MIT, etc.) to it?
When going to https://examples.reflex-frp.org/ on my browser, I'm told the backing cert has expired.
The file reader example is excellent, but how do you extend it to handle multiple files or images?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.