This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-12-26
Channels
- # adventofcode (15)
- # beginners (7)
- # cider (2)
- # clojure (42)
- # clojure-austin (1)
- # clojure-europe (4)
- # clojure-nl (2)
- # clojurescript (19)
- # core-typed (1)
- # cursive (1)
- # datomic (10)
- # fulcro (30)
- # graphql (8)
- # hoplon (28)
- # hyperfiddle (16)
- # jobs (1)
- # off-topic (2)
- # philosophy (1)
- # re-frame (1)
- # shadow-cljs (30)
- # vim (3)
I'm seeing some strange behavior and I can't figure out how to fix it. In my Root component I have a Person and a Week:
If I comment out the (ui-person current-user), reload client so that no Person is showing, and then uncomment, only one Person is rendered, and I don't get any error message.
If I comment out (ui-week selected-week) and reload client, the Person renders as expected, and I don't get any error message
@wilkerlucio I noticed in your talk you used Cursive--have you ever encountered java.lang.IndexOutOfBoundsException: Method code too large!
when trying to debug in a project with pathom?
yes I had that before, I had to break some functions after some time, I guess the go
macro is getting very large expansion and then it goes over the method size
Specifically here: Caused by: Syntax error compiling fn* at (com/wsscode/pathom/connect.cljc:853:38)
@sooheon Yes, gladly. Here's a link to a folder in the repo. As far as I know only the client.cljs in the same folder and ui/root.cljs are relevant here: https://github.com/juripyykko/fulcro-tidsrapport/tree/master/src/main/fulcro_tidsrapport
@juri do you understand how keys work in React? https://reactjs.org/docs/lists-and-keys.html
the error you’re seeing is purely a react error, not related to the parts fulcro does, i.e. it’s UI rendering only
you have :keyfn
set on a number of your components, one of them is probably getting props that have their corresponding :db/id
missing at some point in the render cycle
perhaps before the initial load
oh lol the fulcro log message right below says it all
the Week
component is not getting a value for :week/number
Ask for help~ I’m trying Fulcro+ReactNative . Meet the problem
[fulcro.client.network] Transit decode failed! SyntaxError: JSON Parse error:Unexpected identifier "unexpected"
In the SERVER side:
Using lein new fulcro … user> (start)
My mac’s lan address is 192.168.10.192
I turn off the :security {:anti-forgery false}
And I am not behind a proxy.
When I directly visit http://192.168.10.192:3000/api in browser , got a 403 Forbidden .But I added there addresses in defaults.edn
;; Legal Origins for API request.
:legal-origins #{"localhost" "" "192.168.10.192:3000" "192.168.10.192" "" "192.168.10.192:3000/api"}
In my RN-CLIENT side:
I am using [fulcrologic/fulcro “2.5.0”] only this version works.
Code is:
; [fulcro.client.network :as net]
(defonce app
(atom
(fulcro/new-fulcro-client
:started-callback (fn [app]
(do
(js/console.log "in started-callback")
(df/load app :current-user com.wsscode.multi-timer.components.person/Person)))
:reconciler-options {:root-render support/root-render
:root-unmount support/root-unmount}
:networking {:remote (net/fulcro-http-remote
{:url ""
:request-middleware net/wrap-fulcro-request})}
)))
@eric.shao A GET is never handled by Fulcro API (which is what a browser load of the URI will try)