re-frame

https://github.com/Day8/re-frame/blob/master/docs/README.md https://github.com/Day8/re-frame/blob/master/docs/External-Resources.md
Valentín 2021-04-12T02:51:24.166Z

Hi guys, I have a silly question...

Valentín 2021-04-12T02:51:44.166100Z

How can I deploy re-frame template to heroku?

Valentín 2021-04-12T02:51:49.166200Z

https://github.com/day8/re-frame-template

Valentín 2021-04-12T02:52:01.166400Z

Thanks in advance

ingesol 2021-04-12T05:56:09.166600Z

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

ingesol 2021-04-12T05:56:13.166800Z

https://github.com/ingesolvoll/kee-frame-sample

Quentin Le Guennec 2021-04-12T09:21:04.168600Z

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-himik 2021-04-12T10:04:02.168800Z

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

p-himik 2021-04-12T10:04:45.169Z

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

p-himik 2021-04-12T10:06:36.169300Z

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

caumond 2021-04-12T19:47:58.171700Z

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?

2021-04-12T19:53:36.172600Z

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.

2021-04-12T19:54:29.173400Z

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

caumond 2021-04-12T20:02:49.174500Z

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