Hi guys, I have a silly question...
How can I deploy re-frame template to heroku?
Thanks in advance
This one is deployed to heroku. It has a server part, if that’s what you are asking about. The specifics of creating it on heroku is a matter of following heroku’s tutorial
Hello, I don't understand why I'm not getting any reaction here: https://gist.github.com/qleguennec/8972c880c8baa0e7dc3800ae3fec1737 Based on my understanding of re-frame, the println call line 12 should be called when I evaluate the last do form.
track!
expects its result to be used. But you ignore it, so it's discarded.
You probably want to use reagent.ratom/run!
instead. Although I'm not sure if it'll work outside of a reactive context.
In any case, subscribe
is designed to be used only within views. Any other usage is, I'd say, an undefined behavior.
And (subscribe ...)
returns a regular Reagent reaction. If some Reagent machinery doesn't work with it, then it's a topic better suited for #reagent
Hi, how do I retrieve the language of the user. I used a specific variable in the db, but I would like to use a default value depending on the user default language, something like accept-language
in the http header?
You might want to have a look at https://github.com/tonsky/tongue. It’s an internationalization library and you might or not want to use it directly, but either way the code might be of interest.
(I haven’t used it myself, I just happened to stumble across it recently and it seemed related to your question.)
I did not have a look to wrap-ring-request
which is, you're right, the exact thing I am looking at. Thx.