Fork me on GitHub
#untangled
<
2017-03-27
>
fatihict06:03:57

Hello folks, I want to use the UntangledApiHandler from the Untangled Server. I have read the source code about the untangled-system, but I don't understand the modules passed in to that function. Can anyone help me understand the code?

danielstockton07:03:03

What's the purpose of the :ui/react-key? Is it mostly to allow forcing a refresh of the entire UI?

claudiu07:03:28

yep, as far as I know 🙂

danielstockton07:03:23

How is that usually done? (merge! reconciler {:ui/react-key "some-key"}) ?

fatihict07:03:12

@danielstockton Tony Kay explains it in his video series here (I linked the correct time in the video as well :)): https://youtu.be/vzIrgR9iXOw?t=9m27s

fatihict14:03:40

I found the modular-server branch on the untangled-template github page aw_yeah

adambrosio21:03:22

fatihict: did you end up finding the answer to your question?

adambrosio21:03:52

Looks like part of the problem is that for untangled server the default branch is master

fatihict08:03:00

@U0CSAHDV0 Yes, I've managed to find the answer by digging through the source. I missed the documentation on the develop branch 😄, but that does clear things up. I am currently wrapping our existing system with the untangled-system. I defined two modules with ApiHandlers to parse incoming requests based on the environment. How are you folks using it?

adambrosio23:03:05

essentially it provides a middleware fn that looks at the request url and decides whether it should serve up an image, or continue along

adambrosio23:03:43

but it’s done as an ApiHandler so that the consumer of it decides where to place the image-library middleware

adambrosio23:03:40

oh and it also provides read and mutate endpoints on top of that, which is determined by where it’s located in the :modules vector

adambrosio23:03:39

this was essentially the library that sparked the need for better/simpler ways to control your middleware and install library reads and mutates

fatihict09:03:16

Oh nice 😄

tony.kay15:03:11

I do not see an obvious problem with the code.

tony.kay15:03:30

are you sure you've loaded the file that contains your mutation?

tony.kay15:03:34

dynamic language

tony.kay15:03:43

won't run a multimethod instance if it isn't loaded

wilkerlucio16:03:42

@eric.shao you may want double check if your browser cache is deactivated, I had lost some hours in the past trying to debug something that ended up being just caching...

tony.kay16:03:59

Ah yes, that is a good tip too

tony.kay23:03:54

ooops. Fixed. It is now develop