Hi, what is the idiomatic way to initialize the sate of an application at the start of a program?
Should I just do that before calling mount-renderer
?
Hi! I do exactly that — create application state atom with initial state right before mount-renderer
Awesome, thanks for clarifying that 🙂
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)
@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.
My pleasure! 😊 Try out Reveal as well 😄 https://github.com/vlaaad/reveal
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
Now thats impressive too.