Fork me on GitHub
#untangled
<
2016-04-16
>
wilkerlucio00:04:35

there is a way to use :shared variables with Untangled?

cjmurphy05:04:40

Just from conversation earlier about 'Autocomplete' with Untangled. The actual Autocomplete tutorial fetches from Wikipedia when 3 or more characters have been entered. So no need for debounce but more importantly the client is not interacting with an Untangled server, but some Wikipedia URL. So load-data (which is now called load-collection ??) can't be used - I don't think...

vmarcinko05:04:49

@cjmurphy: load-collection is deprecated i think, load-data is new name

wilkerlucio11:04:19

@cjmurphy: you can use a custom network handler if you want to something different from the default, it's not well document yet but if you look at the sources you can see their HTTP networking implementation, from that you can figure out how to implement your own

tony.kay15:04:23

@cjmurphy: You can certainly use whatever additional networking you want, and use om/merge! on the reconciler to push it in. We have not needed multiple remotes yet, but I'm wanting to add it...it is needed. Also, might make sense to add something that assists with things that are more REST-y in general for this kind of use-case. Any ideas are welcome...we don't have the specific use-case yet, but want to fully support what is generally needed. And correct: we did have load-collection and load-singleton (alias) and unified those into the single name load-data

tony.kay15:04:19

BTW: Talk from last nights Clj West Unsession is up on YouTube (processing, but link is): https://www.youtube.com/watch?v=sLKyVr8atyI&amp;feature=youtu.be

tony.kay15:04:56

I'll be mixing in the live action video in a few days...right now it is just audio/slides. They don't record the Unsessions, so I had to manage it myself (the downsides of open-sourcing after talk submission deadlines :) ).

wilkerlucio16:04:04

@tony.kay: I'm thinking about the :shared issue here, I really need to add shared objects on my UI, I was thinking about what would be the best way to add this option

wilkerlucio16:04:48

I think the point to add would be when creating the client, but I think it's a long chain to be adding parameters to all functions in the middle in order to reach the reconciler construction

wilkerlucio16:04:14

actually, sorry, looking again it seems like it could be added to the application info, and then used when creating the reconciler

currentoor17:04:30

I’ve got a UI that renders a list of items and a form + mutation for creating a new item (and appending it to the end of the list). If I define the mutation callback in the root component and pass it down to the form then it works perfectly. However if I define the mutation lower in the ui-component tree the UI gets all messed up when the mutation is triggered.

cjmurphy18:04:51

@currentoor: If the mutation is adding onto the end of the displayed list then it really is affecting the whole list, and so needs to be done on the component that contains the whole list (thus the function is passed down). Only a mutation that say just say just toggles a check-box could be on the item component.

currentoor19:04:54

@cjmurphy: ah that makes sense!

currentoor19:04:50

Also I see we have 84 members now… there are dozens of us… dozens!

cjmurphy19:04:12

This one will go up and up for a long time I believe simple_smile

currentoor22:04:14

@adambros: :+1: