I want to change a route to support a composite lookup key coming from the route's URL rather than having the ident up front. Is the right place to handle this within the component's :will-enter? I'm trying to do that but route-deferred expects an ident, which I won't have until after a DB query based on the provided composite key.
Use tempid for the ident and then move it to the correct location in post-mutation or something?
getting
TypeError: Cannot read properties of undefined (reading 'cljs$core$IFn$_invoke$arity$2')
at eval (keyframe_render.cljc:58:32)
at $fulcrologic$fulcro$rendering$keyframe_render$render_BANG_ [as render_BANG_] (keyframe_render.cljc:55:29)
with the following code:
(ns dev.veldi.isopos.pwa
(:require
[com.fulcrologic.fulcro.application :as app]
[com.fulcrologic.fulcro.components :as comp]
[com.fulcrologic.fulcro.dom :as dom]
[fulcro.inspect.tool :as inspect]))
(defonce fulcro-app (app/fulcro-app))
(comp/defsc Isopos [inst props]
(dom/h1 "Isopos"))
(defn ^:export start []
;(inspect/add-fulcro-inspect! fulcro-app)
(app/mount! fulcro-app Isopos "isopos"))
(defn ^:export reload []
(app/mount! fulcro-app Isopos "isopos")
(comp/refresh-dynamic-queries! fulcro-app))
on 3.8.6ah, i was following along the book, which also doesn't have an options map: https://book.fulcrologic.com/#_application_source yes, there is a div with the ID "isopos"
same error after adding the options map
Technically the options map is optional, but I was just stabbing at possible things I don’t use that could have regressed 😄
in 3.8.6 you have to change a setting if you’re usng React 17+…and react 19 requires a newer version of Fulcro
see the book
i see. i'll have a play around with different settings and react versions. thank you!
sweet, it's working with 17.0.2
defsc requires an options map…also, does your DOM on the page have a div with the ID “isopos”?