This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-04-29
Channels
- # asami (1)
- # babashka (20)
- # beginners (3)
- # biff (1)
- # calva (5)
- # clj-kondo (68)
- # clojure (6)
- # clojure-europe (70)
- # clojure-losangeles (4)
- # clojurescript (1)
- # cursive (6)
- # exercism (1)
- # fulcro (3)
- # hyperfiddle (23)
- # introduce-yourself (1)
- # kaocha (1)
- # lambdaisland (8)
- # lsp (6)
- # off-topic (24)
- # pathom (24)
- # specter (1)
- # tools-deps (4)
- # xtdb (4)
Hi, learning fulcro - I am running into issue rendering :enum
field. Took a while to realize it needs qualified keys
(def sizes {:pet.size/:small "Small" :pet.size/:medium "Medium" :pet.size/:large "Large"})
(defattr size :pet/size :enum
{ao/enumerated-labels sizes
ao/enumerated-values (set (keys sizes))
ao/identities #{:pet/id}
ao/schema :production})
I debugged enumerated-field/render-to-one
all the way before it calls https://github.com/fulcrologic/fulcro-rad-semantic-ui/blob/main/src/main/com/fulcrologic/rad/rendering/semantic_ui/enumerated_field.cljc#L73, value here is nil. Not sure what it should be
This is the stacktrace I am getting:
act_devtools_backend_compact.js:2367 The above error occurred in the <input> component:
in input (created by DropdownSearchInput)
in DropdownSearchInput (created by Dropdown)
in RefFindNode (created by Ref)
in Ref (created by Dropdown)
in div (created by Dropdown)
in RefFindNode (created by Ref)
in Ref (created by Dropdown)
in Dropdown (created by com.fulcrologic.rad.rendering.semantic-ui.components/WrappedDropdown)
in com.fulcrologic.rad.rendering.semantic-ui.components/WrappedDropdown (created by com.fulcrologic.rad.rendering.semantic-ui.form/StandardFormContainer)
in div (created by com.fulcrologic.rad.rendering.semantic-ui.form/StandardFormContainer)
in div (created by com.fulcrologic.rad.rendering.semantic-ui.form/StandardFormContainer)
in div (created by com.fulcrologic.rad.rendering.semantic-ui.form/StandardFormContainer)
in div (created by com.fulcrologic.rad.rendering.semantic-ui.form/StandardFormContainer)
in com.fulcrologic.rad.rendering.semantic-ui.form/StandardFormContainer (created by app.ui.pet-forms/PetForm)
in app.ui.pet-forms/PetForm (created by app.ui/MainRouter)
in div (created by app.ui/MainRouter)
in app.ui/MainRouter (created by app.ui/Root)
in div (created by app.ui/Root)
in app.ui/Root
Might be newbie mistake. I am following the https://github.com/fulcrologic/fulcro-rad-demo/blob/pathom3/src/shared/com/example/model/address.cljc#L77. Other fields are fine. Any idea? Thank you!