helix

https://github.com/Lokeh/helix
lilactown 2020-12-01T00:03:25.225200Z

Wasn’t me that wrote it but another community member 😌 I’m continuously pleased with the quality and amount of contributions from others to helix, docs and otherwise

2020-12-01T12:18:32.228500Z

Yesterday someone pointed me to https://github.com/vercel/swr that deduplicates request to the server. I assumed that it's not compatible with cljs, because I didn't found a mention on slack (and it inspects the data). Do we have a ibrary that we use with helix that have a similar role ?

dominicm 2020-12-01T14:10:05.228800Z

@geraldodev I think it will work with cljs, I've been evaluating it for use with cljs (in #C012GLC2SAZ I talked about it). I know of no equivalent library. It should even work with cljs-http! As you can use your own fetcher.

👍 1
dominicm 2020-12-01T14:10:30.228900Z

@geraldodev If you get it working, I'd find a gist describing how very useful!

ferossgp 2020-12-01T16:36:43.230200Z

It depends on the usecase, but dedup and cancelling of request could be managed with https://github.com/keechma/keechma-pipelines

👍 2
lilactown 2020-12-01T16:38:37.230900Z

It doesn’t look like SWR cares about what data you return

lilactown 2020-12-01T16:39:34.232300Z

The API they specify in their README: • keys are strings • Fetchers are functions that take a key and return a promise

lilactown 2020-12-01T16:40:13.233400Z

I don’t think it inspects the data returned by the fetcher at all. I don’t see anything about e.g. data normalization

lilactown 2020-12-01T16:40:38.233900Z

So all that said I would guess it would work great with CLJS

👍 1