Fork me on GitHub
#re-frame
<
2021-04-12
>
Valentín02:04:24

Hi guys, I have a silly question...

Valentín02:04:44

How can I deploy re-frame template to heroku?

ingesol05:04:09

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

Valentín02:04:01

Thanks in advance

Quentin Le Guennec09:04:04

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.

p-himik10:04:02

track! expects its result to be used. But you ignore it, so it's discarded.

p-himik10:04:45

You probably want to use reagent.ratom/run! instead. Although I'm not sure if it'll work outside of a reactive context.

p-himik10:04:36

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

caumond19:04:58

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?

manutter5119:04:36

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.

manutter5119:04:29

(I haven’t used it myself, I just happened to stumble across it recently and it seemed related to your question.)

caumond20:04:49

I did not have a look to wrap-ring-request which is, you're right, the exact thing I am looking at. Thx.