Actually the template you linked doesn't use leiningen, unless I'm reading the README wrong
It says it includes:
re-frame shadow-cljs cljs-devtools
The readme does say to use
lein to install the template, but you can avoid it by using https://github.com/seancorfield/clj-new if you use tool deps instead
Thanks for the responses!
@dromar56 yes, you can generate the template using
clj-new but you end up with a leiningen project, just scroll down in that readme and see how you would Run the application.
lein watch etc.
Yeah, a performance issue is what caused us to look into it. The user's browser tab with the application crashed due to too much memory usage. > moving logic from subscriptions to some "preprocessing" step in an event tends to not be too terrible Yeah, we went ahead and did this since it seemed like it allowed the memory usage to go down (the peak in both cases were the same, but after garbage collection, it was lower when storing the preprocessed instead)
So I'm trying to use `re-frame-http-fx-alpha` to fetch some initial data using an http GET request and add it to my database by calling the event from my
init function and then subscribing on parts of the data in one of my views, but with this code I get an error which I don't quite understand.
this is the error message:
The error message talks about something named
no-handler. I don't see anything like that in your code so it must be coming from somewhere else. Maybe
:http fx handler?
I havn't touched re-frame-http-fx-alpha in over a year. There is an example at https://github.com/day8/re-frame-http-fx-alpha-example Or consider using https://github.com/superstructor/re-frame-fetch-fx which is just the stable work extracted from re-frame-http-fx-alpha. @nicholas.jaunsen @p-himik3👍