This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-04-11
Channels
- # announcements (14)
- # beginners (119)
- # boot (9)
- # calva (7)
- # cider (12)
- # cljdoc (2)
- # cljsrn (28)
- # clojure (127)
- # clojure-dev (2)
- # clojure-europe (3)
- # clojure-italy (2)
- # clojure-losangeles (9)
- # clojure-nl (6)
- # clojure-spec (15)
- # clojure-uk (39)
- # clojurescript (35)
- # community-development (4)
- # cursive (9)
- # datascript (8)
- # datomic (5)
- # duct (3)
- # emacs (10)
- # fulcro (45)
- # graphql (3)
- # jobs (1)
- # kaocha (8)
- # luminus (2)
- # off-topic (121)
- # onyx (3)
- # pathom (15)
- # pedestal (31)
- # planck (5)
- # reagent (25)
- # reitit (3)
- # remote-jobs (1)
- # shadow-cljs (48)
- # slack-help (1)
- # sql (142)
- # tools-deps (78)
Looking for someone with knowledge of cljs+rn or re-natal i am having trouble generating working apk
@lepistane btw, there's a #cljsrn channel
is it ok to use *warn-on-infer*
without :infer-externs true
?
thanks π
I want to consume an npm library, and run on node, I'm going the webpack route.
How do I map :global-exports
? window
is not a node namespace and global
doesn't seem to work?
var mqtt = require('mqtt');
global.mqtt = mqtt; // <-- what do I do here?
After a (:require [mqtt])
, js/mqtt
is bound, but mqtt
is not.@danie Obligatory shadow-cljs mention β it has all this ready to go and with a user guide. #shadow-cljs for more info.
@orestis I have it working in shadow-cljs, and would really prefer the clj/deps/figwheel.main route. shadow confuses me sometimes. I'll go ask questions #shadow-cljs π
@mkvlr webpack did not like that. Which made me google webpack and node, and this works:
module.exports = {
node: {
global: true
},
global.mqtt = mqtt;
total hail mary, has anyone used react-select
and material-ui
with cljs? i seem to be having trouble reconciling refs
(or something???). if someone had an example, i'd be much obliged. fwiw, i'm using shadow, and just npm install react-select @material-ui/core
to get access - no cljsjs
What do you mean by reconciling refs? Do you have some sample code? I've worked with react-select at work
is there a jsfiddle for cljs? ( https://escherize.com/cljsfiddle/ ha...let me try to get something together)
this is gonna take longer than i thought π - my problem appears to be that when i replace the Control
component with a TextField
, i no longer have input - i can't type to filter. The DOM looks exactly the same between what I have and what's in the example https://material-ui.com/demos/autocomplete/#react-select , but it's not taking the input. Could it be a controlled component issue? The only weird thing is i'm going back and forth between cljs and js (too much?). Sorry for the scattered thoughts, I've been working on this for two days and I have a newborn, so my brain is having trouble.
@U0G2E3SEM are you replacing it with a pure TextField (no component wrappers around it) or do you create your own custom wrapper?
if you're trying to forward refs won't u have to use the React.forwardRef function: https://reactjs.org/docs/forwarding-refs.html
const FancyButton = React.forwardRef((props, ref) => (
<button ref={ref} className="FancyButton">
{props.children}
</button>
));