Fork me on GitHub
#untangled
<
2017-05-03
>
kgxsz08:05:33

Hi, wondering if somebody has come across this when using untangled.server.core/untangled-system. The readme suggests setting up a system like this:

(def your-server
  (usc/untangled-system
    {:api-handler-key ::your-api-handler-key
     :components {:config (usc/new-config)
                             :server (usc/make-web-server ::handler)
                             ::handler (make-your-ring-handler ::your-api-handler-key)}}))
So I'm having trouble seeing how to implement the read/`mutate` functions. Do I inject them somehow? I think I'm missing something obvious. Is there a full example somewhere I can get my head around? Thank you!

mahinshaw16:05:34

@kgxsz you can check the cookbook. That has plenty of examples: https://github.com/untangled-web/untangled-cookbook

kgxsz18:05:22

adambros: Yeah that typo was the issue for me. Thanks for pointing it out.

stephen18:05:23

Does untangled or om.next use react router? I’m looking at how to use react router for a browser history back button but am unsure of that type of usage under untangled.

claudiu19:05:50

don’t think they play well together.

claudiu19:05:12

there are docs explaining nicely how to implement routing and html5 history