This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-04-23
Channels
- # beginners (27)
- # boot (8)
- # cider (17)
- # cljs-dev (8)
- # cljsrn (5)
- # clojure (56)
- # clojure-dev (34)
- # clojure-gamedev (4)
- # clojure-italy (32)
- # clojure-nl (22)
- # clojure-poland (3)
- # clojure-russia (17)
- # clojure-spec (31)
- # clojure-uk (48)
- # clojurescript (47)
- # core-async (41)
- # cursive (13)
- # datomic (22)
- # emacs (9)
- # figwheel (7)
- # fulcro (18)
- # graphql (3)
- # hoplon (15)
- # jobs-discuss (38)
- # keechma (1)
- # luminus (10)
- # off-topic (42)
- # onyx (8)
- # overtone (3)
- # protorepl (5)
- # re-frame (42)
- # reagent (6)
- # reitit (3)
- # schema (4)
- # shadow-cljs (39)
- # slack-help (5)
- # spacemacs (8)
- # specter (1)
- # tools-deps (36)
- # uncomplicate (9)
- # vim (34)
HI I’m on the new version of re-frame-10x and i’m having a weird issue where I can’t expand the db views since I upgraded. clicking on the little arrow doens’t seem to work
Using the right version of React/Reagent?
Other than that ... tried a clean and rebuild?
What version of 10x?
quick question, level 3 subs are the prefered way to do calculations, conversions, etc. and keep components clean. Is there any way to have a level 3 depend on more than one level two? If say I have 2 form cells, and a third that is a sum other 2.
@eoliphant https://github.com/Day8/re-frame/blob/master/examples/todomvc/src/todomvc/subs.cljs#L90-L106
Hi, would it be idiomatic to have the jwt key read from localstorage all the time instead of loading into the app-database on page load and write it everytime it changes to the localstorage?
I don’t know if there are idioms per-se. I use the session storage approach to keep it around if the page is loaded, but i only interact with local storage when I first grab it, or after renewing it as you mention you could, but as it’s ‘outside’ the app-db, you should use effects and coeffects for reading and writing it to avoid side-effects. wow, that’s too many effects 😉
Yea, I know about the effects support. I just wonder, both solutions are not ideal in my case, because either requires synchronization with the local-storage. Synchronization in itself is always error prone, thats why I dislike it, but dont see any other way now.
The new 50 trace limit in re-frame-10x is pretty great - I went a little trace happy and put one in that ran on every item in a sequence - "only showing 50 of 33671 traces" is a lot nicer first run experience than just hanging!
@sveri: If you need to really ensure you don't have to think about it, you can write your coeffects and effects to do the reading and writing for you as well as your own reg-event-localstorage
that wraps your reg-event-*
calls with your interceptor.
Is this still a thing? https://github.com/Day8/re-frame/blob/746aed8883fa716fc4d551214077f2fdf6ac70cc/docs/Effects.md#dispatch-debounce
@alex-dixon don’t think there is anything in the main lib
one that I was referencing was https://github.com/johnswanson/re-frame-debounce-fx
I think I ended up writing my own debouncing, but was “inspired” by this one. I can’t remember the specifics of why I didn’t use directly (or if I even have a good reason)
@shaun-mahood Thanks for the advice, I'll think about it.
Yarg…ok. Thanks @mikerod
Surely for you 🙂 Wish I felt the same was true for me… think it would take me some time. This is for work so I feel like I have none when it comes to things like this especially. Think I’ll go with this: https://github.com/7theta/re-frame-fx
Am I missing something? In the re-frame-template +10x app the initialize db event is defined using fn-traced but when the app runs there doesn't seem to have been event traced, app-db shows nil, not until I send one of my own events does it seem to be recording.
So when I first run the app I get "Code tracing is not currently available for this event" and app-db is nil. However after I trigger an event of my own the :initialize-db event appears and has the correct app-db
@sandbags: What events are you expecting to see before your initialize-db
event?
It’s the initialise-db event i am expecting to see @shaun-mahood
@sandbags: Ahh I misunderstood - I think I was having the same issue earlier as well, let me check if anything comes up with only the first event firing.
@sandbags: I get the same behaviour if I only dispatch one event. @Everything comes up as expected with 2 or more. So it looks like it's not just you at least.
I think that's the issue you're probably seeing
ah, reading your comments, there might be something more
can you open an issue?