Fork me on GitHub
#fulcro
<
2018-09-08
>
tony.kay03:09:56

I’ve just released 2.6.1. It includes a new option related to server-side rendering, and better error messages (without the big stack traces!) from defsc and other macros.

👍 24
tony.kay03:09:38

Thanks to @thheller for tips on how to clean up those error messages

👍 16
bbss09:09:22

Because in our fulcro app we have big requests we've decided to move some of the querying to a web worker. However I can not seem to hit the entity endpoint from the worker. I'm using html5 fetch with method post, and have made sure the body is the exact same transit object as when sending it from the main app load. But somehow the server sends back a 200 empty response ["^ "]. Any idea what could be happening here?

tony.kay15:09:34

@bbss Not really….you’re hitting /api?

tony.kay15:09:25

you’ve looked at the request headers to make sure they are the correct transit type?

bbss15:09:10

I did look at the headers and they were mostly the same, one that was different is that the WW had "Referrer" set. But I can't remember the transit type header.

tony.kay15:09:33

content type and body should be all that matter, really

bbss15:09:30

Okay, I fell back to adding a regular ring handler in :extra-handlers, but I will inspect the headers again later.

tony.kay15:09:51

It’s pretty simple to roll your own server, too…easy server is just meant for getting started quickly.

tony.kay15:09:38

There’s even a mount example in the book now: http://book.fulcrologic.com/#_rolling_your_own_server

tony.kay15:09:35

I personally roll my own in new projects, and will probably update the docs at some point and discourage using anything else for projects headed to production.

bbss15:09:20

On my own starcraft project I did roll my own. Using the easy server now because I didn't already have a server before I added fulcro and it's easy 😅

pvillegas1220:09:48

With html5 routing I get a flicker of my / route, why would that be happening?

pvillegas1220:09:18

(meaning that the component for the / route is shown before transitioning to the route I’m hitting)

tony.kay22:09:04

@pvillegas12 because you’re routing there first?

tony.kay22:09:14

no other reason for it to do so

pvillegas1223:09:21

(branch
    "/"
    (leaf "" :integrations-index)
    (leaf "index.html" :integrations-index)
    (branch "integrations/" (param :id)
            (leaf "" :integration-details))))
Does this bidi setup mean it will first load :integrations-index and then the integrations/ branch if going to a ?

tony.kay23:09:23

no, the bidi config is just about converting paths to keywords and vice versa…your logic in interpreting what it says it the problem