Fork me on GitHub
#keechma
<
2017-05-31
>
urbank09:05:14

Ha... that helped. Should have tried that in the first place. Thanks!

mihaelkonjevic09:05:22

no problem 🙂

Geoffrey Gaillard10:05:47

Hi @mihaelkonjevic ! Just read the Keechma doc and I was wondering if I could use controllers inside an existing Re-Frame app. The pipeline approach is exactly what I need and I started some weeks ago to implement something similar (and buggy) It would help me a lot to use Keechma's pipelines in my existing app

mihaelkonjevic10:05:30

hm, I’m not sure if it would work. Maybe you could use pipelines without controllers. They are not too coupled. Controller is needed only for the sideffects, but you could probably implement your own sideffects (by implementing the correct protocol) and then pass in something that makes sense for re-frame app

mihaelkonjevic10:05:05

so instead of built in sideffects, you would use re-frame based implementation

mihaelkonjevic10:05:42

@ggaillard ping me if you need any help with that

Geoffrey Gaillard10:05:01

I'll look at it, thank you 🙂

urbank12:05:12

Uncaught Error: Can't resolve the subscription with key: :todos

urbank12:05:16

god damn it

urbank12:05:22

I found it

urbank12:05:04

I had :subscriptions-deps instead of :subscription-deps ... plural instead of singular

urbank12:05:39

It's times like this that I miss type-checking 🙂

mihaelkonjevic12:05:42

I have a plan to add spec to everything, that should help

urbank12:05:44

Yeah, that would be grand 🙂

mihaelkonjevic12:05:22

here’s a short video about the dataloader, full blog post coming next week - https://youtu.be/dZaY1kZwpmw

urbank12:05:56

cool... man I'd like to be able to convince my coworkers to go with something like GraphQL

mihaelkonjevic12:05:07

yeah, it’s great 🙂

mihaelkonjevic12:05:43

But the beauty of dataloader is that you can use any backend with it. GraphQL is just a great fit because you can combine queries

urbank17:05:48

Where exactly does entitydb hook into keechma? What needs to be swapped to exchange it for something else?

mihaelkonjevic18:05:39

EntityDB doesn’t really have any hooks into keechma

mihaelkonjevic18:05:52

EntityDB is implemented as a set of pure functions

mihaelkonjevic18:05:58

that work on a map

mihaelkonjevic18:05:14

so you can use EntityDB without Keechma and vice versa

mihaelkonjevic18:05:57

The only thing that Keechma expects is an reagent atom it has control over

mihaelkonjevic18:05:13

because Keechma stores some internal state in that atom (like which controllers are running)

mihaelkonjevic18:05:02

but that atom is exposed on the map that is returned from the keechma.app-state/start! function

mihaelkonjevic18:05:25

so if you need to do something with that atom, it’s possible

mihaelkonjevic18:05:31

each controller has full access to that atom too

urbank18:05:16

Ok cool, I just thought there was something more because there an :entity-db key in the state

mihaelkonjevic18:05:07

what do you plan to use?

urbank18:05:18

@mihaelkonjevic Not sure, probably entity-db eventually, but want to do some experimenting with a more specific solution for my particular data

mihaelkonjevic18:05:55

cool, if you make some cool integration, make sure you let me know 🙂

urbank18:05:58

@mihaelkonjevic Will do! 🙂