This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-07-03
Channels
- # aws (1)
- # beginners (5)
- # boot (46)
- # cider (6)
- # cljs-dev (421)
- # cljsrn (74)
- # clojure (77)
- # clojure-greece (1)
- # clojure-italy (7)
- # clojure-russia (12)
- # clojure-serbia (42)
- # clojure-sg (1)
- # clojure-spec (10)
- # clojure-uk (38)
- # clojurescript (40)
- # core-async (14)
- # data-science (1)
- # datomic (18)
- # emacs (2)
- # events (1)
- # garden (4)
- # gorilla (4)
- # graphql (5)
- # hoplon (69)
- # luminus (1)
- # lumo (1)
- # off-topic (31)
- # om (31)
- # om-next (2)
- # overtone (3)
- # pedestal (1)
- # precept (4)
- # re-frame (23)
- # reagent (2)
- # remote-jobs (1)
- # ring-swagger (23)
- # rum (7)
- # spacemacs (7)
- # sql (4)
- # unrepl (9)
- # untangled (5)
- # vim (11)
- # yada (5)
@flyboarder yeah cool, it should be pretty easy to swap between the two using closure
@thedavidmeister here is my refactor https://github.com/hoplon/brew/blob/master/src/hoplon/history.cljs
@flyboarder cool, i'll check it out in https://github.com/thedavidmeister/wheel/issues/67 ๐
@avabinary route-cell is quite low lovel, there's an example using bidi ^^
uses google's history API instead
@thedavidmeister can't find the example, is it on the hoplon brew github ?
is what @flyboarder refactored recently
it's based on https://github.com/thedavidmeister/wheel/blob/master/src/wheel/route/core.cljs
seems like it was easier to use route-cell and just define a defroute onto which to append my id
@avabinary yeah secretary works fine, i used to use that myself ๐
@thedavidmeister I think you (or someone else here) had similar issues with modifying inputs in a for-tpl
like a ~year ago ๐
it was me
maybe also someone else
but definitely me too ๐
this is a gnarlier version of that
this: https://clojurians-log.clojureverse.org/hoplon/2016-05-08.html#inst-2016-05-08T18:33:49.002601Z?
oh nice
@dm3 thanks
@dm3 i actually came up with a workaround that wasn't based on timeouts this time ๐
but yeah
it sucks
also, can't really live without form inputs
some more: https://clojurians-log.clojureverse.org/hoplon/2016-05-06.html#inst-2016-05-06T21:44:01.002136Z
michaโs solution: https://gist.github.com/micha/3fdbaa46cb5fe363f887ef39081618ea
turn 2-way databinding on the same variable cell -> :value -> input | input -> :value -> cell
to cell -> :value | input -> event -> :value2 -> cell
@dm3 so, it's a similar approach
basically "redoing" the val in response to things other than the value cell itself changing
micha proposed an event handler (although realistically it would be probably half a dozen to cover off everything)
and i'm proposing multiple cells
also, the multiple cells approach can look like the event approach if you just bind an event to update one of those extra cells
:value [value keyup]
:keyup #(swap! keyup random-uuid)
mmm, what do you mean by that?
well, this is definitely a pattern within Hoplon - dealing with 2-way databinding situations
i put a PR up
it's not the prettiest code but i think you'll get the idea
wow... i only just realised that if you use namespaced attributes you can bind multiple events with on!
๐
i got the test to pass with :value [(j/cell= (get data k)) sorted-data]
because i know that re-sorting the data will mix the values up in a way that a simple get
won't be able to respond to
oh, no reason
same result either way, i'll push v
up so you can see
https://travis-ci.org/hoplon/hoplon/builds/249606469?utm_source=github_status&utm_medium=notification should fail
https://travis-ci.org/hoplon/hoplon/builds/249606807?utm_source=github_status&utm_medium=notification should pass
using v
and [v data]
respectively, to give a few examples
hmm, failed on my local and passed on travis -_-
lemme look into that
@dm3 fails with v
i don't know what happened earlier ๐
@thedavidmeister you trading some cryptocurrencies? ๐
@dm3 haha yeah, actually i bought some btc a few years ago and now i want to split that out into a few different currencies