Fork me on GitHub
#hoplon
<
2017-08-06
>
Ruben W12:08:06

Is there a way to force hoplon to reload when developing using boot-reload. My SPA only rerenders when I change the index.cljs, but when I modify an element in another file (e.g. app.my-component), which is used in index.cljs, the page doesn’t rerender

flyboarder19:08:41

@freakinruben We can’t solve that issue currently as jQuery will only add one instance of a class to an element

flyboarder19:08:04

^try it out with the example, you can’t add blue twice

flyboarder19:08:59

I’m not sure about GCL but I assume it’s the same

Ruben W19:08:35

if you require hoplon.goog instead of hoplon.jquery in index.cljs, it doesn’t use jquery right?

flyboarder19:08:01

correct, that would be one quick test

Ruben W19:08:46

tried already, without my own implementation of :class, but normalize-class ofcourse still makes a map of it then

Ruben W19:08:09

not sure what you mean with creating my own implementation for classs

flyboarder19:08:53

well :class is just part of the do! multimethod, you can implement your own method

flyboarder19:08:47

but either way, I think you get stuck by normalize-class

flyboarder19:08:58

let me check

Ruben W19:08:59

ah cool, didn’t know you could extend hoplon like that

flyboarder19:08:55

@freakinruben try the page I wrote on the wiki

Ruben W19:08:02

Indeed, also doesn’t work without normalize-class using GCL

flyboarder19:08:16

mhm, personally I stopped using sem-ui because it was difficult within hoplon, now using Material Components Web and UIKit

flyboarder19:08:37

my issues were mostly using it’s javascript

Ruben W19:08:39

ah, I’ve been trying to avoid the JS part of sem-ui, but still in the exploring fase 😉

flyboarder20:08:23

which contains all my wrappers for sem-ui

Ruben W20:08:28

yeah I saw, but I wanted to use the .less files of sem-ui and I believe you import the css

Ruben W20:08:51

also, it started throwing some spec errors when I tried it with cljs 1.9.854, although I can’t tell you which atm

flyboarder21:08:43

yeah updating it isnt a priority right now, since it’s not really used compared to the UIKit library http://github.com/degree9/uikit-hl

Ruben W21:08:49

interesting!