Fork me on GitHub
#fulcro
<
2018-09-28
>
currentoor00:09:35

Is it possible to return a tempid mapping and some other data about that entity?

{::prim/tempids         {payment-id db-id}
 [:payment/by-id db-id] payment}
something like that

currentoor00:09:24

or do i have to have a separate remote query afterwards?

currentoor03:09:22

Oh right, forgot those existed 😅

Jesse08:09:38

Does fulcro integrate well with a graphql server?

claudiu08:09:39

@jesse050 not out of the box yet. they are very compatible and pathom has some really cool stuff for fulcro + graphql

claudiu08:09:33

Tried it a bit, now stuck on something else but looks really prommising. Planning on having graphql as the bakend for the current app i'm working on

Vincent Cantin12:09:04

Is there any spinoff from Fulcro?

Vincent Cantin12:09:31

or some other OM-Next++ ?

claudiu12:09:24

https://github.com/forward-blockchain/qlkit this one is the only similar on I know of.

bubblebobble 4
tony.kay14:09:45

@jesse050 Pathom has a Fulcro remote that will automatically transform between GraphQL on queries: https://github.com/wilkerlucio/pathom/blob/master/src/com/wsscode/pathom/fulcro/network.cljs#L184

tony.kay14:09:15

just put that in as a Fulcro remote, and you should be able to hit GraphQL endpoints with normal Fulcro UI queries.

tony.kay14:09:24

not heavily used yet, so may be slightly rough around the edges...but it isn't a lot of code. Maybe 200 or so lines gets you a remote that will mostly "just work". I think Wilker has some demonstration of this against github's API...don't remember where, though

tony.kay14:09:24

Ah, and it does support mutations already...so, there ya go 🙂

veddha16:09:56

can i style my id in fulcro?

tony.kay16:09:11

you mean (dom/div :.boo#id ...)? Yes.

veddha16:09:22

@tony.kay sorry mr.kay, i forgot to input my query, so my css won't pass to the root hehehe

tony.kay16:09:47

that’ll do it 🙂

mitchelkuijpers16:09:24

@claudiu Just our 2 cents about UI testing, we are actually started doing UI tests but we switch remotes for mock remotes.. Which makes the UI tests superfast and you can use it to catch browser bugs.

mitchelkuijpers16:09:36

But we were already creating mock remotes because we are creating a demo environment so customers can try us out without starting a trials..

currentoor18:09:32

i might have to do something like that for demos also

mitchelkuijpers18:09:35

The remote abstraction really shines for these use cases

claudiu17:09:09

@U060GQK8U sounds cool. How do you test the UI, on state or somth like image regression ) jest ?

mitchelkuijpers07:10:10

We do normal state testing with clojure.test and we do very simple UI tests so we can make sure our most important flows always work. We haven't looked to much into image regression

tony.kay21:09:24

@jesse050 https://github.com/awkay/pathom/blob/doc-improvements/docs/DevelopersGuide.adoc#GraphQL I’ve contributed docs to pathom for this. They’re not merged yet, but you can preview them there.

bananadance 24
tony.kay21:09:47

Pretty cool stuff.

tony.kay22:09:27

Just made an overview video showing off a demo that @wilkerlucio wrote to hit GitHub’s API, along with some of the Fulcro Inspect stuff you end up with as a result. https://youtu.be/Yk7xFry0w2Y

aw_yeah 16
bubblebobble 8
parrot 12
👍 16
tony.kay22:09:19

Released Fulcro 2.6.5 to clojars. This release has optimizations from @thheller that reduce code size for advanced optimization compiles by 1.5k per component.

🎉 24
okeydoke23:09:29

@claudiu @tony.kay @wilkerlucio thanks for the replies. Will check out pathom