Fork me on GitHub
#fulcro
<
2020-12-13
>
holyjak08:12:58

Is there the info about which version of Fulcro works with which version of Insepct somewhere? Thank you!

tony.kay17:12:50

The releases section of the repo

tony.kay17:12:51

Fulcro 3.4+ new inspect, otherwise older one

wilkerlucio18:12:58

hello, I'm trying to play with Fulcro RAD demo repo, but having trouble to start the client, the server seems to work fine, but on the client its not, the first thing I noticed is that index.html points to a js file js/example/main.js, but that file doens't exist, the path for the cljs compilation is js/main/main.js. I changed that, also noticed the call for <script>com.example.client.start();</script>, which I can't find either, so I just removed it (also checking on shadow cljs it already points to a different init fn). after that I'm getting some other strange errors on the console.

tony.kay18:12:14

I was not aware of it being broken in any way…let me look

tony.kay18:12:31

you on develop branch?

tony.kay18:12:44

actually they are same 🙂

tony.kay18:12:27

using right port?

tony.kay18:12:39

should not be using the index.html file at all I think

wilkerlucio18:12:57

ah, prob wrong branch

wilkerlucio18:12:00

just cloned, came on master

wilkerlucio18:12:03

trying develop now

tony.kay18:12:34

and do NOT add index.html to it

tony.kay18:12:45

I need to fix the middleware on that, and remove that file

tony.kay18:12:00

that serves a stale old file if you say index.html

wilkerlucio18:12:38

makes sense, yeah, I was starting from the shadow http port

tony.kay18:12:54

Also, in general, I recommend the Datomic db adapter if you use one…it is way better tested. The SQL one works, but it has a number of little annoyances and limitations right now

wilkerlucio18:12:05

cool, thanks, its working now

wilkerlucio18:12:07

yeah, using datomic

tony.kay18:12:23

I’ll make it a bit more foolproof…

holyjak19:12:35

Are you suggesting Wilker is a fool? troll (Excuse my bad jokes.)

tony.kay19:12:05

I think he’s the one that suggested that, but he and I are good friends 😜…so it would not be surprising for us to tease each other a bit

wilkerlucio18:12:14

I have a suggestion, keep the index.html, but leave a link there like: <a href="localhost:3000">This is the wrong HTML file, click here to go to </a>

wilkerlucio18:12:38

so if the fool is like me, it will see after trying to start from shadow, hehe

tony.kay18:12:02

I think removing it worked ok…the correct port will tolerate it because of mw, and the shadow only opens a test port, which shows tests.

Buidler18:12:01

How do you deal with components that have the same representation but are different entity types in the DB? Just define two components and factor out the body to a function?

holyjak19:12:46

I guess that is what I would do though I have not encountered this problem yet.

Buidler19:12:21

Thank you. Seems obvious but I always wonder if it's the idiomatic way of doing things.