fulcro

sheluchin 2025-07-01T00:26:07.594659Z

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.

sheluchin 2025-07-01T22:45:28.802199Z

Use tempid for the ident and then move it to the correct location in post-mutation or something?

sundarj 2025-07-01T20:44:46.904849Z

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.6

sundarj 2025-07-02T17:27:59.569419Z

ah, 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"

sundarj 2025-07-02T17:30:29.382879Z

same error after adding the options map

tony.kay 2025-07-04T18:03:20.492729Z

Technically the options map is optional, but I was just stabbing at possible things I don’t use that could have regressed 😄

👍🏼 1
tony.kay 2025-07-04T18:06:51.389139Z

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

tony.kay 2025-07-04T18:07:03.837749Z

see the book

sundarj 2025-07-11T19:07:27.316569Z

i see. i'll have a play around with different settings and react versions. thank you!

sundarj 2025-07-11T19:16:25.852499Z

sweet, it's working with 17.0.2

tony.kay 2025-07-02T01:23:15.307949Z

defsc requires an options map…also, does your DOM on the page have a div with the ID “isopos”?