cljfx

https://github.com/cljfx/cljfx
sveri 2020-11-30T10:33:41.160300Z

Hi, what is the idiomatic way to initialize the sate of an application at the start of a program?

sveri 2020-11-30T10:34:32.160700Z

Should I just do that before calling mount-renderer?

vlaaad 2020-11-30T10:37:32.160800Z

Hi! I do exactly that — create application state atom with initial state right before mount-renderer

sveri 2020-11-30T10:38:02.161Z

Awesome, thanks for clarifying that 🙂

vlaaad 2020-11-30T10:38:54.161700Z

You can even dispatch some initialization event before mounting (like here — https://github.com/cljfx/cljfx/blob/master/examples/e18_pure_event_handling.clj#L59-L63)

1
sveri 2020-11-30T10:39:50.162600Z

@vlaaad Btw, I was looking at cljfx a few years ago (not sure how much) when the project was pretty new and got into it again last week. Really impressing what you have achieved so far, also the documentation is really good.

vlaaad 2020-11-30T10:48:56.162800Z

My pleasure! 😊 Try out Reveal as well 😄 https://github.com/vlaaad/reveal

vlaaad 2020-11-30T10:49:48.163100Z

I made it with cljfx (in fact, cljfx was made partially because I wanted to make Reveal) and use it all the time as a repl output

sveri 2020-11-30T11:00:19.163300Z

Now thats impressive too.