This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-03-31
Channels
- # announcements (20)
- # asami (14)
- # aws (6)
- # babashka (15)
- # beginners (83)
- # biff (6)
- # calva (93)
- # cider (3)
- # clj-kondo (21)
- # cljdoc (106)
- # cljs-dev (32)
- # clojure (165)
- # clojure-dev (78)
- # clojure-europe (54)
- # clojure-italy (9)
- # clojure-nl (9)
- # clojure-norway (24)
- # clojure-uk (4)
- # clojurescript (6)
- # community-development (2)
- # conjure (2)
- # core-typed (14)
- # datahike (4)
- # datomic (2)
- # emacs (40)
- # events (1)
- # fulcro (11)
- # graalvm-mobile (29)
- # graphql (8)
- # honeysql (19)
- # java (1)
- # jobs (1)
- # lsp (232)
- # malli (5)
- # membrane (112)
- # nextjournal (11)
- # off-topic (63)
- # portal (12)
- # re-frame (6)
- # reagent (3)
- # reitit (4)
- # rewrite-clj (2)
- # shadow-cljs (25)
- # tools-deps (6)
hey @mauricio.szabo, this is a fine place to ask.
Thanks! I was wondering if someone had experiences with @testing-library/react-native
and freerange. If I render the component with provide-frame
, the rendered component does not get the latest frame. Worse yet, bind-frame
does work but it's synchronous, so I can't test async info with freerange because the moment an event/context comes back, the frame is already gone... any tips?
Also, after creating the frame with make-frame
, I'm registering the built-in effects and coeffects with register-built-in!
calls. Do I have to cleanup them after each testcase?
@mauricio.szabo can you hang on to the frame in a lexical scope?
I kinda can, but I'm adding freerange on a codebase that already have react with a different framework, and I kinda don't want to mess up with the code outside the Clojure world...
not following completely. I don’t think there’s a way of avoiding passing the frame to the event handlers.
Well, I was using re-frame.context
as the way to dispatch/subscribe things, and I was getting the frame implicitly by rendering my reagent component with [re-frame.context/provide-frame [my-reagent-component ...]]
I'm not sure if this is the right way to do it...