This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-07-23
Channels
- # announcements (10)
- # babashka (7)
- # beginners (31)
- # boot (4)
- # calva (8)
- # chlorine-clover (19)
- # cider (12)
- # clj-kondo (27)
- # cljsrn (7)
- # clojure (68)
- # clojure-colombia (2)
- # clojure-europe (47)
- # clojure-italy (16)
- # clojure-nl (4)
- # clojure-spec (13)
- # clojure-uk (39)
- # clojurescript (103)
- # code-reviews (8)
- # community-development (2)
- # conjure (38)
- # core-async (37)
- # cursive (2)
- # datascript (1)
- # datomic (31)
- # figwheel-main (22)
- # fulcro (18)
- # jobs (2)
- # jobs-discuss (6)
- # juxt (3)
- # keechma (1)
- # lambdaisland (6)
- # malli (30)
- # meander (20)
- # off-topic (29)
- # reagent (1)
- # reitit (16)
- # shadow-cljs (4)
- # tools-deps (70)
- # xtdb (19)
Hello - I'm trying to get started with fulcro, and figured id try to run the example app, which pointed to the https://github.com/fulcrologic/fulcro-rad-demo
I'm having trouble getting that running. At first the javascript wasn't loading, but I changed the script loading in the index.html from js/examples/main.js
to js/main/main.js
based on the asset-path in shadow-cljs.edn
main.js:2231 An error occurred when loading com.example.client.js
...
main.js:2232 ReferenceError: fulcro_network_csrf_token is not defined
...
shadow.module.main.append.js:4 An error occurred when calling ..
(index):12 Uncaught TypeError: com.example.client.start is not a function
at (index):12
and at this point, I figured I'm probably doing something wrong, or I maybe I shouldn't be using this as the demo app.
has anyone else ran it recently?
Or if anyone has a better suggestion of a way to get started / an example app I can run and look at, let me know! I'm also going through the developer guide.if you're just getting started you should probably use the plain template: https://github.com/fulcrologic/fulcro-template fulcro RAD is an extension suite that's still in alpha
The Readme of ☝️ reads: > There is a Fulcro RAD demo that is perhaps a better starting point for a project. :)
i also personally found it helpful to look at the video series code (see the different tags in the repo) since it's less real-world-ready, meaning it just focuses on the fundamental concepts: https://github.com/fulcrologic/video-series
ah great, thanks!!
@tylernisonoff So, the README for RAD demo should be correct. Make sure you follow the directions carefully.
EDIT: Ahh apologies, you are correct. The server is listening on 3000, I was connecting to the devtools port :face_palm:Thanks for the help
I’m using RAD in production. I’ve not promoted it from alpha, but it’s pretty stable
we have many many forms/reports on it now, so chances that big changes will happen are slim in the core parts
great to hear, excited to dig into it!
Can I use the fulcro data normalization feature in a re-frame app?
I believe this video touches on that: https://www.youtube.com/watch?v=ng-wxe0PBEg
what's the best strategy for rolling back an optimistic update when there's a server error and you need to undo your optimistic update? i see three options:
1. hold on to a copy of state
from before the optimistic update and roll back to it on error
2. apply the inverse of the optimistic update in the body of the error
3. reload from the server any of the relevant parts of state
on error