Fork me on GitHub
#fulcro
<
2020-05-01
>
daniel.spaniel12:05:16

in the fulcro book, it talks about server with this function

(defn wrap-api
  "Fulcro's API handler"
  [handler]
  (fn [request]
    (if (= "/api" (:uri request))
      (server/handle-api-request
        server-parser
        {:config config}
        (:transit-params request))
      (handler request))))

cjmurphy13:05:19

I use mount lite, so the @ in @parser/parser just indicates its a mount component.

daniel.spaniel13:05:03

I think that is working, thanks alot Chris 🙂

fjolne15:05:37

@UEC6M0NNB JFYI there’s a template for F3 with all those things pre-configured https://github.com/fulcrologic/fulcro-template

daniel.spaniel15:05:50

yes I finally checked the template and saw it, which is what Chris showed .. thanks for reminder

daniel.spaniel12:05:20

but server/handle-api-request now only accepts 2 args not 3 as it used to .. confused as to which params to include

pvillegas1216:05:53

In fulcro 3 we are seeing root refreshes, but these root refreshes are not re-rendering the current route. We are using (route/immediate …) and a didComponentMount function to load the entity for the given route. The root refresh should be re-rendering the route. Did something change in fulcro 3 so that a root re-render does not refresh the router children?

tony.kay17:05:56

nope…only thing that will cause a missed refresh is props not changing

tony.kay17:05:19

so make sure you’re querying for the change, not manually pulling stuff in render from state or something

tony.kay17:05:50

and that you targeted the data correctly…perhaps it isn’t hooked up, so props really are not changing

tony.kay17:05:23

also make sure your tree (in total) is connected…i.e. that things have initial state. That should not be any diff from f2, though

dvingo22:05:17

css error input semantic ui

dvingo22:05:02

anyone run into this where the semantic ui css styles seem to be in the wrong order? i'm trying to render the error state on a form input and the error styles are "losing" because they occur before the default styles in the minified output

dvingo22:05:43

they are in the correct order for the examples