Fork me on GitHub
#re-frame
<
2021-05-03
>
Fabim13:05:19

Hey. is there a way to run re-frame (incl. 10x and tracing) with figwheel-main and deps.edn? I only found setup instrustructions for lein/shadow-cljs.

p-himik14:05:50

re-frame is just a library, including other tools. To the best of my knowledge, it doesn't depend on any specific build tool.

superstructor23:05:20

Correct. Although we use shadow-cljs ourselves and recommend shadow-cljs an incompatibility with a major currently supported build tool like figwheel-main would be considered a bug.

Fabim06:05:55

Nice, thanks, just didn’t find a way to do the shadow-cljs compiler options for the tracing in figwheel so I will stick with shadow. @U2FRKM4TW @U0G75S29H Reframe depends on reagent right? Or could I replace reagent with something like dumdom while still using all reframe features? I would like to remove react as a dependency.

p-himik07:05:08

Re-frame directly depends on Reagent and is impossible to use without it. Some details here: https://github.com/day8/re-frame/issues/590

Fabim08:05:02

Interresting discussion. After years of working with hooks I fully agree with you. Thats also why I wanted to go for dumdom. I hope the react team won’t at one point only support hooks.

Fabim08:05:04

What version if react do you then recommend to set in a reframe project?

p-himik08:05:48

When using Reagent, you don't have to worry about hooks at all, unless some NPM library uses them - you can just not use them yourself. A particular re-frame version depends on a specific Reagent version which, in turn, depends on a specific React version. Just choose those versions accordingly.

Fabim08:05:47

Ah I read that reagent is switching to hooks as well

p-himik08:05:09

A recent version has made it possible to use them for the user of Reagent. But no, Reagent doesn't switch to hooks.

Fabim08:05:54

so the new :f> and :r> shouldn’t be used when using reframe?

p-himik09:05:43

They can be used. Whether they should be or not - depends on what your use-case it. Re-frame doesn't care about them at all. Whatever works in Reagent, will work in re-frame.

👍 3
AJ Jaro13:05:35

We use re-frame and 10x with figwheel, yep

Fabim13:05:39

@UGMAVSMUM Nice. I switched to tailwind JIT which required shadow-cljs. Otherwise I would use figwheel-main as well.

👍 3