This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-07-31
Channels
- # announcements (1)
- # beginners (171)
- # cider (51)
- # clj-kondo (40)
- # cljsrn (5)
- # clojure (68)
- # clojure-dev (42)
- # clojure-europe (2)
- # clojure-italy (20)
- # clojure-spec (2)
- # clojure-uk (141)
- # clojurescript (19)
- # community-development (4)
- # core-async (17)
- # core-logic (3)
- # cursive (11)
- # data-science (1)
- # datomic (7)
- # defnpodcast (2)
- # figwheel (9)
- # figwheel-main (2)
- # fulcro (15)
- # graphql (21)
- # jackdaw (3)
- # joker (11)
- # juxt (1)
- # luminus (12)
- # off-topic (2)
- # pathom (73)
- # pedestal (2)
- # re-frame (41)
- # reagent (14)
- # reitit (4)
- # shadow-cljs (39)
- # tools-deps (4)
Is it generally recommended to use Bidi over Secretary as a routing library? I keep running into an issue where if I navigate to an /about
page and try to do a refresh on that page it crashes because the /about
page doesn’t actually exist in the index file
@mitch So that sounds like your server isn’t setup to server the client page requests properly. You’ll want to make sure you’re re-writing your index requests to server up index.html
. As for the libs - i’ve used both but tend to lean more towards bidi.
Thanks @U1APR44RE
Np, I’ve posted something a few days ago with an example on how to do this. https://clojurians.slack.com/archives/C0620C0C8/p1564153583113400?thread_ts=1564149486.103900&cid=C0620C0C8
I'm trying to use react-grid-layout
with reagent and shadow-cljs but this stuff is tricky to debug!
I'm getting an error "Warning: React.createElement: type is invalid", and I'm guessing it's because the class I'm referring to from the imported js project maybe doesn't exist.
But I'm not quite sure how to introspect and look at the actual code that shadow-cljs is pulling in to try to see what the right name is.
@pmooser using the REPL is usually the quickest way. (require '["the-js-dep" :as x])
then (js/console.dir x)
or so
@thheller Would you mind answering a question? If I have an import in JS like
import RGL, { WidthProvider } from "react-grid-layout";
is it correct that in shadow-cljs that should look like: ["react-grid-layout" :as rgl :refer (WidthProvider) :default RGL]
or am I misinterpreting the docs?