Fabim 2021-05-03T13:56:19.379200Z

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-himik 2021-05-04T07:46:08.386100Z

Re-frame directly depends on Reagent and is impossible to use without it. Some details here:

Fabim 2021-05-04T08:11:02.386400Z

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.

Fabim 2021-05-04T08:11:04.386600Z

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

p-himik 2021-05-04T08:15:48.386800Z

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.

Fabim 2021-05-04T08:16:47.387Z

Ah I read that reagent is switching to hooks as well

p-himik 2021-05-04T08:19:09.387200Z

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

Fabim 2021-05-04T08:20:54.387400Z

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

p-himik 2021-05-04T09:31:43.390100Z

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.

AJ Jaro 2021-05-05T13:17:35.399800Z

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

Fabim 2021-05-05T13:42:39.400200Z

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

p-himik 2021-05-03T14:07:50.379300Z

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

superstructor 2021-05-03T23:12:20.379600Z

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.