This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-08-04
Channels
- # announcements (6)
- # beginners (207)
- # calva (39)
- # cestmeetup (35)
- # chlorine-clover (36)
- # clj-kondo (15)
- # clj-together (1)
- # cljsrn (2)
- # clojure (110)
- # clojure-europe (8)
- # clojure-italy (9)
- # clojure-nl (2)
- # clojure-uk (5)
- # clojurescript (61)
- # conjure (4)
- # cursive (1)
- # datalog (3)
- # datomic (22)
- # emacs (8)
- # events (2)
- # figwheel-main (11)
- # fulcro (23)
- # graalvm (16)
- # graphql (1)
- # helix (4)
- # jobs (5)
- # jobs-discuss (4)
- # malli (3)
- # mid-cities-meetup (13)
- # off-topic (58)
- # pathom (12)
- # re-frame (30)
- # reagent (45)
- # reitit (1)
- # reveal (7)
- # sci (2)
- # shadow-cljs (173)
- # spacemacs (1)
- # sql (1)
- # test-check (5)
- # xtdb (13)
let's say i delete some entity [:foo/id :bar]
--now any joins on it are invalid, right? is there any clever way to rid the client db of joins of a deleted entity, or must it be done either manually or via brute force?
there is a helper for exactly that https://github.com/fulcrologic/fulcro/blob/develop/src/main/com/fulcrologic/fulcro/algorithms/normalized_state.cljc#L118
@danvingo I am using your fulcro template with crux, but when I start the backend repl the user namespace is not populated. It's a fresh install, and I haven't made any changes to any files yet.
λ make be-repl
clj -A:dev:test:guardrails
Clojure 1.10.1
user=> (ns-interns ns)
{}
user=> (require 'user)
Execution error (FileNotFoundException) at user/eval3 (REPL:1).
Could not locate user__init.class, user.clj or user.cljc on classpath.
hey @michael819 hmm, nothing comes to mind - I'll try out a fresh clone later today and debug what flags did you use when cloning?
my guess is you didn't run make + make fe first. here's what I ran:
clj -A:new dv.fulcro-template my-username/my-project-name +devcards +workspaces +test +server
make
# in another terminal:
make fe
# in another terminal:
make be-repl
@danvingo I just cleared the dir, and did those three steps but the user namespace is still empty
Not good enough with clojure yet to debug this, but all the settings look right, and I see src/dev/user.clj in the dir, but it's empty in the be-repl
hmm ok, I did run into some annoying local maven repo caching issues in the past so maybe I'm not actually running the code you're running
This is a brand new install of Linux Mint so the only maven packages I have were downloaded just for this project. I just got a new hdd and did a clean install last night.
ok that's good to know. Then yea my guess is I have some local code changes to the project that aren't in the version on clojars. I should have some time later today to dig into it
@danvingo Thanks for taking the time, I really like the way you did this so I hope to be able to base my app off this template. You did a lot of the work I would struggle with as a noob.
np thanks for the positive feedback! - iterating on templates can be a pain because you have to make a change, generate a project - start 2 repls. test, repeat. takes a while
@danvingo ok something interesting, if I use clojure instead of clj to run the command it works: clojure -A:dev:test:guardrails
That's odd. The only difference between the two is that clj
wraps clojure
with rlwrap