This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-10-03
Channels
- # announcements (4)
- # aws (19)
- # babashka (55)
- # beginners (40)
- # biff (4)
- # calva (9)
- # cherry (3)
- # cider (8)
- # clj-kondo (26)
- # clj-yaml (3)
- # clojure (92)
- # clojure-austin (14)
- # clojure-europe (21)
- # clojure-nl (1)
- # clojure-norway (5)
- # clojure-portugal (3)
- # clojure-uk (2)
- # clojurescript (48)
- # conjure (19)
- # datalevin (14)
- # docker (13)
- # emacs (3)
- # fulcro (21)
- # gratitude (14)
- # improve-getting-started (1)
- # introduce-yourself (2)
- # joker (4)
- # juxt (2)
- # lsp (12)
- # malli (5)
- # meander (17)
- # off-topic (13)
- # re-frame (7)
- # scittle (2)
- # test-check (2)
Built a project based on the Fulcro-RAD-demo project and can't for the life of me figure out why I'm getting this in the console: My package.json deps are exactly the same. :thinking_face: I don't see the error running the demo
I also just built a rad-based demo project and I don't think I ran into the same problem, but I remember seeing this: https://book.fulcrologic.com/RAD.html#_required_dependencies and some other mentions of a joda-time change, so I'm guessing it's related. I bumped all the dependency's versions when assembling my deps.edn, so maybe that is how I bypassed the issue.
The issue was resolved by using the yarn.lock in the fulcro-rad-demo project.
Hello. A noobie question here. How do we sequence a bunch of local-only mutations?
One solution that comes to mind is to have them in a vector and tx [(mutation-A) (mutation-B)].
Downside of this is that we'll need to repeat it across the codebase, would be nicer to define dependency (mutation-B depends no mutation-A) somewhere.
Suggested place for it is in ok-action
, error-action
or result-action
, but in order for these to run tx would need to be a remote one (as they won't be called without it, as I understand), which is not the case.
So I'm left to wonder how to tx a local mutation A
and have mutation B
scheduled after it.. any tips?
If it's local only just do the operations as helpers in the mutation. You can call transact from within the action section as well.
Using Fulcro's dynamic routing system, how does one implement a 404 page for undefined routes?
my instinct would be to shield the fulcro routing system from this situation, intercepting invalid routes before they get to the fulcro routers
if you're using web for example then on an attempted route change you'd check to see whether the new URI is valid for the site and route to a 404 (with a valid fulcro router segment sequence) if not
What is the router waiting for if the next path segment is clearly not consumable by any of its sub-routers?
Currently if I'm using React 18, I am getting this warning message:
Warning: ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17.
I found this pattern works:
(defonce root (react-dom/createRoot (js/document.getElementById "app")))
(defonce SPA ( {:render-root! (fn [component] (.render root ($ react/StrictMode component)))}))
(defn refresh {:export true :dev/after-load true} []
(println "Hot Reload")
(! SPA))
oh right, I'm not using fulcro for any UI rendering - you may have success with callined mount!
again
First of all, yes, I’ll get to it, second, you can configure what gets called... It’s an option when you create an app
* `:render-root!` - The function to call in order to render the root of your application. Defaults
to `js/ReactDOM.render`.
* `:hydrate-root!` - The function to call in order to hydrate the root of your application. Defaults
to `js/ReactDOM.hydrate`.