Fork me on GitHub
#untangled
<
2017-03-23
>
claudiu08:03:36

@stephenway Are you using PostCss for everything or combining it with om-css from untangled repo ? Really like the idea of co-located css.

claudiu10:03:10

Is there a easy/recommended way in untangled to do something like. Fire up the data fetch only after 1sec has passed since the last filter was applied.

claudiu10:03:37

In js in was trivial with redux-observable middleware (rxjs).

stephen15:03:10

@claudiu Right now it’s only using PostCSS to compile, and we have looked at using om-css, but currently do not have the bandwidth to convert it to such a state. I think it would be awesome to have colocated styles though!

claudiu15:03:38

@stephenway is anybody using om-css in production or is it still experimental ?

stephen15:03:57

@claudiu Not that I am aware of. Maybe the guys at adstage? No reason not to use it in production that we can see.

mitchelkuijpers15:03:05

That is the other om-css

claudiu15:03:47

@mitchelkuijpers thank you, missed that one. Will check it out πŸ™‚

mitchelkuijpers15:03:21

Maybe something that you can use garden instead of the strings

mitchelkuijpers15:03:40

But we are waiting for the js-modules to get a little bit more mature

claudiu15:03:46

that would be a interesting approach πŸ™‚

tony.kay17:03:30

@claudiu Mutations are meant to be abstract...so the filters should be calling some set-filter kind of mutation, and the debouncing should be done in the mutation implementation (for fetch). In terms of implementing that: For example: you could have an atom that is "private" to that set of filter mutations that holds onto a js timer that you reset at each mutation...if it expires, it could then run a load against the reconciler or component (which you can get from the component passed to the mutation in env).

tony.kay17:03:49

I'd typically recommend the reconciler or the (app-root reconciler) be the thing used with load (in that kind of scenario), since the component that triggered the mutation could get un-mounted due to user navigation in the UI before the timeout.

tony.kay17:03:24

The ladderlife om-css requires you use a custom defui (which leads to better ability to export the CSS for post-processing and use as a file). The untangled version approach is less invasive, but expects that you'll have the CSS embed into the DOM without using a file.

tony.kay17:03:09

My thought was that having cljs to manipulate the CSS was sufficient, but there are some powerful pre-written CSS tools out there. pros/cons πŸ˜„

claudiu18:03:38

@tony.kay ok πŸ™‚ I could not find anything regarding om.next middleware. I had a lot of fun with https://redux-observable.js.org/ and was curious if I could use a similar in om.next/untangled.

tony.kay19:03:56

too hard of a question, to answer well.

tony.kay19:03:03

not that middleware is hard

tony.kay19:03:15

nor would it be hard to do whatever you'd like in theory

tony.kay19:03:29

the problem is you need to understand the model before you start trying to mix and match tech

tony.kay19:03:25

when you ask a direct question like debouncing filter updates, that I answer clearly...when you ask about integrating redux...I'm no expert on that topic, nor do I plan to research it for you πŸ˜‰

claudiu19:03:07

agh πŸ˜„ not really about integrating redux. Switching from js/redux to clojure & untangled. Was just curious if there was a similar pattern.

claudiu19:03:26

Will probably figure it out as I keep working on my project with untangled.

tony.kay19:03:06

Yes, I think there are a lot of similarities. I

tony.kay19:03:27

think you'll find that Untangled/Om Next has a similar simple nature to Redux...from what I know aabout it at least

tony.kay19:03:53

You know about the video playlist on Youtube? Many ppl have found those very useful

tony.kay19:03:05

See the Untangled website docs section

claudiu19:03:27

yes, thank you so much for the video series πŸ™‚ a few of them I have watched more than once.

tony.kay19:03:37

For anyone interested: I'll be manning the Navis booth at Clj West next week. Come chat about Untangled and Om Next.