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
Rob Knight 2021-04-01T08:36:00.103300Z

Freerange is a few versions behind the latest Re-frame. Are there any plans to merge upstream changes from more recent versions of Re-frame?

Rob Knight 2021-04-01T08:40:16.103500Z

fwiw, I would be happy to contribute to either helping keep Freerange in sync with the latest Re-frame, or figuring out how to get the changes in Freerange merged upstream. There has been an open issue on this for ~5 years, and it would seem that no conclusively better ideas have emerged in that time.

mkvlr 2021-04-01T11:39:09.103700Z

what’s changed in re-frame since then? I see mostly doc changes?

Kira McLean 2021-04-01T12:49:43.104200Z

I came across this is my searches.. looks really interesting, thanks!

Rob Knight 2021-04-01T18:01:26.108300Z

@mkvlr Re-frame 1.2.0 has Reagent 1.0 as a dependency rather than 0.9.1, which makes working with React function components easier.

mkvlr 2021-04-01T18:04:14.108500Z

@rob.knight ah yeah, was there any code changes related to that? Happy to bring them in. Currently I think https://github.com/nextjournal/freerange/issues/11 is blocking external consumers but I’ve been meaning to fix that anyway

Rob Knight 2021-04-02T05:49:34.109800Z

No, just a deps bump. It's only an issue for me as I care about Reagent 1.0 vs 0.9.

mkvlr 2021-04-01T06:56:01.102700Z

https://github.com/day8/re-frame/issues/137 is the relevant re-frame issue

2021-04-01T16:39:36.105400Z

Hi im building a re-frame app based on this template -> https://github.com/day8/re-frame-template

2021-04-01T16:40:48.106900Z

One of the things I want to do is use http params. so for example I would like to use https://my-cool-app.com/home#?data=foo and get access to "data=foo" in the function that renders the /home url. Any pointers to code that does this?

2021-04-01T16:41:36.107700Z

(ahh the url was supposed to be an example, not an actual place....)

p-himik 2021-04-01T16:46:43.107800Z

No clue about the template, but I'm using kee-frame for URL routing. It doesn't do it itself, it's just a wrapper, but it's a convenient one, and it does a few other things. BTW no need to use # in URLs in modern browsers - then can handle URL query changes without dispatching any requests.

2021-04-01T17:07:29.108Z

oh sweet. yeah the template uses bidi for routing.

caumond 2021-04-01T18:40:42.108800Z

Hi. I found some beautiful effects based on javascript. I started to implement them in pure clojurescript manipulating the dom objects. After some iterations, I started to rewrite all of them in reframe, listening to events. Now i have a doubt. In the db I have keys for domain data and some for ui. Maybe a bad separation of concern? How do you do ?

p-himik 2021-04-01T18:43:17.108900Z

Define what exactly the state of your app is, as a whole. Go from there. app-db is not about domain data. It's about your app's state. How you separate the domain data from the UI data is up to you. May be as simple as structuring your app-db as

{:data {...}
 :ui   {...}}

caumond 2021-04-01T18:45:53.109400Z

Ok. Very clear. Thx

👍 1