This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-03-25
Channels
- # beginners (152)
- # boot (4)
- # bristol-clojurians (1)
- # cider (1)
- # cljs-dev (176)
- # clojure (104)
- # clojure-china (2)
- # clojure-uk (6)
- # clojurescript (6)
- # core-async (23)
- # cursive (4)
- # datomic (3)
- # devops (1)
- # duct (32)
- # events (1)
- # fulcro (9)
- # hoplon (2)
- # jobs-discuss (9)
- # lein-figwheel (2)
- # leiningen (3)
- # off-topic (19)
- # pedestal (2)
- # portkey (14)
- # re-frame (20)
- # reagent (41)
- # rum (4)
- # shadow-cljs (26)
- # tools-deps (1)
- # unrepl (5)
Hi everybody. I have a fairly simple question. I’m trying to set up a CLJS app with Rum, secretary + accountant, and Figwheel. My single page app resides at /resources/public/index.html
so loading
starts my app. I want to have url navigation with a #
in the URL after the /index.html
part. Are there any examples out there of how I can get this to work?
I think I found it. Right now I’m doing this which seems to be working. If anyone has a better way, let me know:
(set! (.-onhashchange js/window)
(fn [e]
(secretary/dispatch! (.-hash js/window.location)) false))
(accountant/navigate! "#/")
@stephenmhopper you can configure secretary for hashed urls (secretary/set-config! :prefix "#")
New page documenting how to contribute to Closure Compiler https://clojurescript.org/community/closure
for users who would like to see JS module processing development move a bit faster and want to help with that process
Hi, I'm trying to use a npm module (`react-table`), but I'm getting the following error: Uncaught TypeError: Cannot read property 'array' of undefined at propTypes.js:3
. Right now I have the following:
project.clj
:install-deps true
:npm-deps {:react "16.2.0"
:react-table "6.8.0"}
in my views.cljs file:
(:require [react-table]
[goog.object]))
(def rtable (goog.object/get react-table "default"))
Any help would be appreciated!