Fork me on GitHub
#clojurescript
<
2016-01-31
>
rburns14:01:58

@mateusz-fiolka: You can use figwheel for node development. Though have also used a combination of cljs watch and file watcher to restart the node process in the past.

pshk4r15:01:59

I’ve just created place selection input based on Google Places API using re-frame (which is based on Reagent) and wonder if it would make any sense to extract it as a library for others to use. It’s quiet a simple thing, yet takes up to a few hours to implement. The only concern I have is that being built with re-frame it is quite specific, in comparison to ‘plain’ Reagent or Om.

pshk4r15:01:46

What do you think?

meow15:01:28

@pshk4r: Sounds very useful to me. Would be nice if it was generalized enough to be used in Reagent and Om as well. Or appropriate variations for those frameworks.

geraldodev20:01:43

What am I missing ? I'm using assert defensively, but sometimes the messages do not appear on developer's console. This specific case was one. Should I surround each potential clause with a try catch ?

ezmiller23:01:33

hi all, i’m working with a js library that uses promises. i’m trying to understand how i’d interact with those promises inside of clojurescript.

ezmiller23:01:01

The function Parse.User.signUp returns a promise.

ezmiller23:01:41

So could I just do something like:

(usr (js/Parse.User))
(.signUp usr)
inside a function and would that then return the promise that signUp normally returns, so that elsewhere I could do:
(def usr-promise (signup-user))
(.then usr-promise …)

ezmiller23:01:26

okay should have just tested that, but the answer seems to be yes!