This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-03-30
Channels
- # announcements (1)
- # beginners (113)
- # cljs-dev (5)
- # cljsrn (20)
- # clojure (16)
- # clojure-losangeles (1)
- # clojure-nl (1)
- # clojure-spec (17)
- # clojure-uk (5)
- # clojurescript (125)
- # core-async (4)
- # cursive (4)
- # datomic (66)
- # defnpodcast (1)
- # fulcro (25)
- # kaocha (2)
- # klipse (1)
- # nrepl (19)
- # re-frame (5)
- # reagent (3)
- # reitit (6)
- # ring-swagger (16)
- # shadow-cljs (16)
- # sql (6)
- # test-check (1)
- # tools-deps (1)
- # vim (7)
Oki guys an update from me.
How to make sente + re-natal work?
Just dont use csrf.
send nil
instead of token from client
set csrf-token-fn
to nil
on backend and it will connect (with warning of course)
and gg
If you are using rest api - you should be fine. If not and you find a way to have it working with csrf - please contact me!
Hopefully someone will find this useful in the future - i updated sente issue, reddit post
Regarding the slow/laggy input text. How would you clear the field since you are only passing in a default value?
If your :default-value
is an atom, if you change the state of that atom, it’ll refresh the component. So you can set that to ""
and it’ll clear the field.
@caleb.macdonaldblack https://increasinglyfunctional.com/2019/03/28/why-clojurescript-react-native-text-input-slow.html
@haiyuan.vinurs Sorry Im trying to figure out how to update that field programatically after submitting (clearing it). Im thinking ill need to mess around with refs or something.
Yeah you do, or at least I did 😅. I used a volatile to keep them reference to the input and rub methods on it based on external events
Need I bother with calling (rn/StyleSheet.create)
on my styles map? It seems to work the same giving my components a cljs map for :style
and I much rather keep my styles as cljs data than as js objects.
https://stackoverflow.com/questions/38886020/what-is-the-point-of-stylesheet-create/38887003
Thanks. This could explain it, maybe: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/29265#issuecomment-430787780
It's not about reagent once I have this problem on fulcro Maybe is something with "lifecycle abstraction"
Apropos lag: I have a strange problem with my app on iPhone 6. Things run smoothly on other devices, but on iPhone 6 it is < 1fps. Not sure how to isolate the problem, but I think I will try to do just that.
@thheller my nrepl seems to die with any error using expo + shadow-cljs
I made a write up on zulip
https://clojurians.zulipchat.com/#narrow/stream/193860-cljsrn/topic/shadow-cljs.20expo.20repl.20dies.20with.20compilation.20error
Does this seem like something I'm doing wrong or is this a bug?
It's not about reagent once I have this problem on fulcro Maybe is something with "lifecycle abstraction"