This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-07-10
Channels
- # announcements (5)
- # aws (18)
- # babashka (1)
- # beginners (81)
- # calva (7)
- # chlorine-clover (1)
- # cider (5)
- # cljs-dev (8)
- # clojure (125)
- # clojure-dev (1)
- # clojure-europe (31)
- # clojure-italy (3)
- # clojure-nl (2)
- # clojure-norway (1)
- # clojure-spec (5)
- # clojure-sweden (1)
- # clojure-uk (31)
- # clojurescript (85)
- # code-reviews (1)
- # core-async (17)
- # cursive (39)
- # datomic (16)
- # emacs (1)
- # fulcro (6)
- # java (16)
- # kaocha (2)
- # luminus (4)
- # malli (2)
- # off-topic (65)
- # pathom (3)
- # re-frame (11)
- # reagent (5)
- # remote-jobs (1)
- # rum (5)
- # sci (10)
- # shadow-cljs (24)
- # spacemacs (4)
- # test-check (3)
- # tools-deps (22)
- # xtdb (15)
Okay, this confuses me now. That :initial-state
in ActivityFeed was something I didn't really look at anymore because I thought whatever's there is ignored except for when the component is being routed to. Instead of being used as a component inside another component.
really, my 2 second glance on Query/ident/initial state fixed your problem? Take that to heart š
and initial state has nothing to do with routing (directlyā¦it could be leveraged there, but isnāt): Think of Fulcro as a library that lets you make animations over time via a data structure. Every frame of that animation is a snapshot of state. I personally imagine those cells Disney used to draw on, but Iām old š. All of those cells but one is a small delta from the prior one. :initial-state
is the first cell in the sequence, and the deltas are generated via mutations (loads are just a conveniently-written mutation that modifies your state by pulling stuff from some remote data source).