Fork me on GitHub
#hoplon
<
2016-11-18
>
thedavidmeister02:11:27

@dm3 zoomed in it looks like it’s not the cells but javelin checking whether things are equal for propagating, does that seem right?

onetom02:11:08

@jumblerg what's the story about set-in! vs set-in*? is set-in! left there just for backwards compatibility? the latest commit touching those lines only says "wip" in the commit message

thedavidmeister02:11:55

lol, classic commit message

onetom02:11:49

@fiddlerwoaroof im running the latest canary on mac and im still getting a full stack trace:

Uncaught Error: 123 is not ISeqable                                  string.cljs:75
    at Object.cljs$core$seq [as seq] (core.cljs:1125)
    at cljs.core.map.cljs$core$IFn$_invoke$arity$2 (core.cljs:4491)
    at cljs.core.LazySeq.sval (core.cljs:3256)
    at cljs.core.LazySeq.cljs$core$ISeqable$_seq$arity$1 (core.cljs:3310)
    at cljs$core$seq (core.cljs:1112)
    at Function.clojure.string.join.cljs$core$IFn$_invoke$arity$2 (string.cljs:75)
    at clojure$string$join (string.cljs:66)
    at hoplon$ui$vstr (ui.cljs:82)
    at Function.<anonymous> (ui.cljs:708)
    at Function.cljs.core.apply.cljs$core$IFn$_invoke$arity$2 (core.cljs:3718)
    at cljs$core$apply (core.cljs:3709)

onetom02:11:18

i clicked on the link on the cljs$core$seq (core.cljs:1112) and at the top of the core.cljs file it does indeed say:

This script is blocked in debugger
yet it's appearing in stackstraces

onetom03:11:33

@jumblerg what's going on with assert-noattrs? it doesn't seem to be used anymore, neither the attrs? validator. does it help composition/extension if non-recognized attributes are just ignored by default?

onetom03:11:25

@jumblerg I've cleaned up our additions/variations on Hoplon UI: https://github.com/addplus/ui/blob/addplus/src/hoplon/ui.cljs#L659-L783 It adds default value support to forms. The submit functions' return values are also used to reset! form *data* for convenience. I put together a super minimalistic showcase for it too: https://github.com/addplus/ui/blob/addplus/tst/hoplon/forms.cljs You can try it with boot test as usual. (I kept the other demo pages too but they are inactive by default)

onetom03:11:40

It would be good to hear your thoughts on it.

onetom04:11:05

This branch also shows how to run Dirac on a custom port and also uses the latest Clojure and ClojureScript versions. You need Google Chrome Canary though to enjoy CLJS REPL within the browser console. (`brew cask install google-chrome-canary`) You have to install the Dirac extension: https://chrome.google.com/webstore/detail/dirac-devtools/kbkdngfljkchidcjpnfcgcokkbhlkogi and start the browser with the remote control port open:

> cat ~/bin/canary
#!/bin/sh
/Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome\ Canary \
  --remote-debugging-port=9222 \
  --no-first-run⏎
Then open the Dirac-DevTools with the extension's icon.

onetom04:11:34

It's a great way to start hacking on Hoplon UI 😉

thedavidmeister05:11:33

the call order of setTimeout doesn’t guarantee the execution order in all browsers, although according to the spec it should

micha17:11:48

interesting