Juho Teperi

Results 298 comments of Juho Teperi

``` clj (ns cookie-test.core (:require [goog.net.cookies :refer [cookies]])) (.set cookies "name" "value") (js/console.log (.get cookies "name")) ``` And the resulting advanced compiled file is 1.9KB, gziped 1.2KB. But that file...

There is too much unrelated information in this issue to really say what is happening. Problems with controlled inputs with Reagent are known "feature": https://github.com/reagent-project/reagent/blob/master/doc/ControlledInputs.md. The workaround that is applied...

By the way, there is more discussion about RN TextInput in this old issue: https://github.com/reagent-project/reagent/issues/119

So, I did some testing with this: - Currently this doesn't work as destructuring will return `parts` as Seq, not Array - `array-reduce` is private in cljs.core - I can't...

Yes, `reduce` is probably fine. Though it doesn't directly call `arrray-reduce`. When destructuring is used to get `start` and `parts`, `parts` will be `ArrayChunk` which has it's own `IReduce` implementation...

I think I was unsure of the performance improvements last I tried to benchmark this. > Probably benchmarking the dash-to-prop-name alone, preferably with Benchmark.js, should provide more information about this...

Hmm, is there really some part of react-leaflet API that is completely inaccessible through the official UMD JS file? That's unfortunate. I'd really prefer using the existing files whenever possible....

The problem here (as far as I understand and can describe) is that the function doesn't have Reactive context. There are several workarounds like: - Dereffing the value outside of...

Reagent components are rendered using `run-in-reaction`: https://github.com/reagent-project/reagent/blob/master/src/reagent/ratom.cljs#L502-L511 That will call the render fn in `deref-capture`: https://github.com/reagent-project/reagent/blob/master/src/reagent/ratom.cljs#L39-L49 `*ratom-context*` alone is not enough to get derefs registered, the function body also has...

Server-side rendering works when running Reagent in Node and using react-dom/server to render to a string. This is what demo-site uses: https://github.com/reagent-project/reagent-project.github.io/blob/master/index.html But yes, it should be possible to do...