mount

2019-07-09T05:51:25.002600Z

is there any tutorial on #mount ?

Ahmed Hassan 2019-07-09T09:27:03.003300Z

@i docs are well written.

2019-07-09T09:27:18.003600Z

yup. i am following that.

2019-07-09T09:27:29.003900Z

it has lots of stuff. but it’s not well written.

2019-07-09T09:27:38.004300Z

for (novice audience)

2019-07-09T09:27:57.004900Z

for example, it’s not self-contained. what’s the definition of create-conn? and disconnect?

2019-07-09T09:28:10.005200Z

the article itself doesn’t form a working minimal example.

2019-07-09T09:28:29.005700Z

though i am now mostly fine with the basic idea of mount.

Ahmed Hassan 2019-07-09T09:30:15.007300Z

create-conn is any function that creates or starts connection.

Ahmed Hassan 2019-07-09T09:30:44.007900Z

Like websocket or db connection.

tolitius 2019-07-09T13:54:35.009400Z

@i thanks for the feedback, I added a small clarification about create-conn in the docs if there is too much in the docs to digest right away take a look at some sample apps to get a better feel: https://github.com/tolitius/stater

cjmurphy 2019-07-09T20:05:12.013400Z

One thing that got me about the docs is I never knew where load-config came from. As it turns out there's such a function in one of your libraries (cprop). But also other people's libraries, or it is simple to write your own. And it doesn't have to be a special kind of function. That's different to Integrant where there can be Integrant reader literals in the .edn file.

tolitius 2019-07-09T20:29:21.014Z

@cjmurphy great, thanks. I updated the docs.

tolitius 2019-07-09T20:29:38.014100Z