This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-05-16
Channels
- # architecture (12)
- # aws (8)
- # bangalore-clj (1)
- # beginners (172)
- # boot (25)
- # chestnut (3)
- # cider (15)
- # cljsrn (5)
- # clojure (170)
- # clojure-india (1)
- # clojure-italy (21)
- # clojure-nl (87)
- # clojure-romania (3)
- # clojure-sg (1)
- # clojure-spec (1)
- # clojure-uk (79)
- # clojurescript (79)
- # cursive (2)
- # datomic (29)
- # dirac (26)
- # emacs (7)
- # fulcro (13)
- # jobs (4)
- # juxt (22)
- # lein-figwheel (1)
- # leiningen (2)
- # lumo (39)
- # nrepl (1)
- # off-topic (54)
- # onyx (124)
- # pedestal (1)
- # planck (4)
- # portkey (1)
- # re-frame (36)
- # reagent (2)
- # ring-swagger (8)
- # shadow-cljs (107)
- # spacemacs (1)
- # specter (25)
- # sql (7)
- # tools-deps (5)
- # vim (10)
- # yada (25)
What I`m doing wrong? Does Re-frame invoke a requestanimationframe when I do dispatch?
It may be an issue with the efficiency of your animations. If not, you might want to check what is being logged to the console. Printing large amounts of data to the console is very expensive.
Did you use re-frame-10x? I think you can read the performance info of a lot of things there
hard to tell from your code snippet, but sometimes a hierarchy of subscriptions could get heavy
By the way on the latest Iphones the app works well! But on the more cheap devices (Honor for example) work very slow
@al.vyguzov Is it possible to use a transition left 1s
or similar in your CSS for animating instead? My experience is that those tend to "just work". Sorry for the somewhat vague answer, I'm not entirely sure why you don't get good performance.
@al.vyguzov do you recompute left
and width
in raf? Those subs seem too low-level for re-frame
In re-frame-10x's app-db inspector, for some reason the arrow toggles for expanding datastructures do not work anymore. Anyone have any hints?
@miikka seem to remember this can happen if you mix dependencies React15 and React16 dependencies.
Ie. if your dependancy is [day8.re-frame/re-frame-10x "0.3.3"]
but you are using react16
(if you use react16
you should be using [day8.re-frame/re-frame-10x "0.3.3-react16"]
Something like that
Oh yeah, that's right:
seemed to fix it for @timok
(above when i talk about dependency mismatches, i think I'm remembering what I suggested, rather than the ACTUAL fix)
@troglotit No. As I unferstood Reagent can raf himself
Is it just me, that I find reg-sub-raw simpler and more clear, than the usual way? I've only used reg-sub, since I gather "that's the way it's supposed to be done", but somehow writing a separate signal function seems like unnecessary extra concepts compared to just having the reagent basics and subscriptions.
@tomi.hukkalainen_slac when you use reg-sub
, the computation function is pure. Better for testing, understanding, etc.
reg-sub-raw
is also easier to stuff up. Requires a deeper level of knowledge.