Fork me on GitHub
#fulcro
<
2023-08-16
>
Ben Lieberman19:08:53

Hi, I'm following along with the Fulcro tutorials on YouTube. Really thorough stuff, thanks. I'm on part 6 right now but I can't seem to connect to a remote.

(def app (app/fulcro-app {:remotes {:sample (http/fulcro-http-remote {})}
                          :client-did-mount (fn [app] (df/load! app [:person/id 1] Person))}))
I've got the app configured like this for the moment, but Fulcro Inspect does not show me :person/id in the global DB.

tony.kay22:08:42

If you call your remote :sample, then you’ll have to specify {:remote :sample} in the load options. Call it :remote instead 🙂

2
tony.kay22:08:52

that’s the default that load uses. You can have as many remotes as you want, so when you load you have to designate which one you want to use, and if you don’t it picks the one called :remote