This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-11-09
Channels
- # aws (3)
- # bangalore-clj (3)
- # beginners (40)
- # boot (53)
- # cider (1)
- # cljs-dev (124)
- # cljsrn (22)
- # clojure (105)
- # clojure-italy (1)
- # clojure-nl (3)
- # clojure-russia (35)
- # clojure-spec (9)
- # clojure-uk (30)
- # clojurebridge (25)
- # clojurescript (107)
- # datomic (18)
- # dirac (21)
- # events (6)
- # hoplon (29)
- # leiningen (5)
- # off-topic (40)
- # om (17)
- # onyx (25)
- # parinfer (2)
- # pedestal (4)
- # perun (2)
- # planck (1)
- # protorepl (6)
- # re-frame (18)
- # reagent (15)
- # ring-swagger (4)
- # specter (2)
- # test-check (7)
- # testing (3)
- # untangled (45)
- # vim (2)
Hi re-frame’rs, any recommendation for drawing diagrams and doing animations in reframe?
guys, are there examples of client-side auth flow with re-frame?
Whats the norm for storing data in app-db
when you have somewhat large texts (retrieved from a remote source), say multiple profile pages? Overwriting everything eliminates any potential for local caching, so I’m not sure I want to do that.
I was thinking something like splitting up the URI path ‘/user/1234/general’ to a vector of keys [:user :1234 :general]
which I can then use as a cursor in app-db
, storing whatever text I need for the general section. I would then have a subscription taking the user id as argument.
This allows for local caching, but would maybe be a bit involved as I would have to create an interceptor which would store a sequence of these access-events and “garbage collect” whenever this sequence goes above a limit.
Good/bad idea?
Hi I'm quite new to re-com and am having trouble dynamically creating children from a filtered list, pulling multiple pieces of info from a tree and displaying them in my layout, are there any examples of doing something similar?
I have a for loop through a collection that is then mapping keys to values then trying to generate a component for each id
@wielderofmjolnir Your second solution makes more sense to me.
Have you considered these “active” subscriptions: https://github.com/Day8/re-frame/blob/master/docs/Subscribing-To-External-Data.md#some-code
to store a being-used
flag for garbage collection?
@lsenta Sry, I’m a bit new to re-frame. I was thinking I would use “active” subscriptions for the requests, yes. I’m not sure I understand where you suggest putting the being-used
flag.
Do you mean flagging the reaction?
Or having a :being-used
list in app-db
?
Sorry I think I asked the other day but I didn't see a response. Have testing handlers and components for re-frame changed in the latest re-frame version?
@wielderofmjolnir Sorry I didn’t meant to confuse you, I only meant you can use the active subscription to maintain a flag (or last used timestamp for example), it’s a pretty recent feature.
Ah, I see! Yeah, that's a great idea :) Thanks a lot for your help by the way! Appreciate it! :)
I’ll be working on this tomorrow, so I’ll let you know how it works out! 🙂