Fork me on GitHub
#clojurescript
<
2022-08-12
>
winsome15:08:25

Is it possible to use :npm-deps in src/deps.cljs to include foreign dependencies? Or do I have to vendor them myself?

achikin16:08:45

Is there a good library to render clojure data structures to html? I want to create a simple embedded data inspector for my reagent forms. Search would be a huge plus.

phronmophobic17:08:15

Let me know if you run into any issues or have suggestions!

👍 1
phronmophobic17:08:29

I've been thinking about how to incorporate search, so if you have something in mind, I would be interested to hear your ideas.

👍 1
isak17:08:53

@U7RJTCH6J do you support refreshing derefs? For example, Imagine I'm viewing path [:a :d :e :g], and let's say :d is derefable. Am I able to click refresh on :d on that path, and have the data below :d get refreshed?

phronmophobic17:08:03

not currently, but that seems like a good idea

phronmophobic17:08:47

Just created a new issue for it, https://github.com/phronmophobic/viscous/issues/5. It's not that hard to implement, but there are few design decisions: • should values be refreshed on push/pop? • what happens if the current path no longer exists after refreshing? • what happens if the current path throws an exception on refresh? • should there be a way to selectively refresh some atoms and not others? (I'm leaning towards no, but I'm open to being convinced otherwise)

1
Lucas Paszinski17:08:03

Q: Does any one know any open-source project that uses a pattern like the one described in this talk? I’m new to Clojure overall and i although a really liked the concept i don’t have much of an idea of what does it look like. https://www.youtube.com/watch?v=3HxVMGaiZbc

phronmophobic18:08:25

Do you have a more specific description of what you mean for the pattern? Are you referring to the split between cljs and js in the project?

Lucas Paszinski21:08:39

from what i could understand. The components are react components (written in js that must work on their own) and the state-managenment/coordination is done with clojurescript.

phronmophobic22:08:00

Yea, I can't think of anyone open source projects that use that particular pattern. It is not uncommon to have some parts of an app in js and some parts in cljs. Especially if the js part is functional, it can be pretty straightforward.

zane22:08:09

Is it possible to make a JavaScript library available to ClojureScript consumers as a https://clojure.org/news/2018/01/05/git-deps? I had hoped to use a combination of deps.cljs and :deps/prep-lib to achieve this, but I’m struggling a bit.

Drew Verlee22:08:33

I dont' believe so. I suggest using shadow-cljs which just uses npm w/ package.json

zane16:08:32

Trying to find a solution that uses cljsbuild for now, but thanks!