Cannot create proper fulcro component, as *app* isn't bound.
in the release build
#477
-
Hi, I have a problem that I can't find a fix nor do I understand what's may cause this. And the problem only occurs, when I release my production JS. (optimization I have a component with a React hook state for toggling between UI layouts. It initially renders fine in either state, but when I toggle the layout I get the I broke my code down to something like this: (let [[layout set-layout] (hooks/use-state :short)]
(case layout
:short
(for [{id ::proposal/id :as proposal} (rest sorted-proposals)] ; <--- thats the only difference.
(dom/li {:id id} (proposal-card/ui-proposal-card proposal some-computed-stuff)))
(for [{id ::proposal/id :as proposal} sorted-proposals]
(dom/li {:id id} (proposal-card/ui-proposal-card proposal some-computed-stuff))))) Can anyone give me a clue as to what is causing this error? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Tony via Slack
It really is. surrounding |
Beta Was this translation helpful? Give feedback.
Tony via Slack
It really is. surrounding
for
withvec
solves it.