Fork me on GitHub

I'm curious. What would it take to server side render Rum with Lumo?


I'm thinking about this for a number of reasons. Netlify has shit support for Boot. I would love to be able to edit my code on any device. I think it would be cool to pull in a repo from Github and edit within the browser with a live environment and then push back to Github. It would open up Rum to a lot more people.


@grounded_sage maybe it would be simpler to just use CI to build things with boot and upload to Netlify then? 😄


Yea I'm back and forth between just doing my own thing and utilising your work with Confetti. @martinklepsch


I really like the integration with GitHub, that it can take other external webhooks, the script injection, compression, the branches being made on an alternate URL for previews, having unique URL's for all deploys so you can look at an old deploy.


They apparently also do some tricky stuff with the CDN. The pricing model doesn't quite work for me. The base $9 only really gets me the proxy rules (will barely use) and form handling (likely roll my own).


@grounded_sage still meaning to dive into some “immutable deploy” kind of stuff for this S3/CloudFront setup but didn’t get to that yet


Think it might be possible with some Cloudfront rules but not sure yet


Taking this to PM to keep Rum clean


I'm using rum in a react native (re-natal) app. I'm trying to make work. Rendering the list is not a problem, but I want to let it scroll on mounting. It seems the method scrollToEnd is invoked, but the list doesn't scroll down:

(defcs testlist < navigation
  {:did-mount (fn[state]
                (let [flatlist (-> state
                                   (js->clj :keywordize-keys true)
                  (.scrollToEnd flatlist) ;; no error here, but it doesn't scroll to the end...
  [{navigation :some.ns/nav
    :as state}]
  (flatlist {:data all
             :keyExtractor (fn [item idx] (str "list-item::" idx))
             :ref :ref-list
             :renderItem #(list-item %)})


Adding (-> state :rum/react-component rum/request-render)) (after the .scrollToEnd-call) doesn't help either.


Does anyone know how to prevent flickering? I have a page server side rendered and I've now deferred my JS to keep Google page speed happy. Now what happens is my page loads and then it flickers when the js lands.


should-component-update = false opieop


So I just add the static mixin?


Can someone clarify what is meant by the mutable reference? Note that this is not enabled by default because a) comparisons can be expensive, and b) things will go wrong if you pass a mutable reference as an argument.


It only means at that singular component level right? And I'm guessing it is referring to JS interop stuff or is a mutable reference also an atom?


reference to js object


Cool. Thanks for the clarification!


Hey all, I'm trying to reproduce with rum/re-natal. I can't wrap my head around how to make these things work: 1. Something like ref={(ref) => { this.list = ref; }} in the properties. It should look like {:ref #(aset ?? %)}, but how to access this right there? ( 2. I can make it work if I provide a string or keyword to the ref {:ref :list}, although it's not recommended to do so. However, even if I do this, in a did-mount-mixin, I don't seem to be able to execute functions on this. For example (.scrollToEnd (-> state :rum/react-component .-refs (aget "list")))should scroll to the end of the list. ( It doesn't. No errors, but it just doesn't scroll to the end of the list (using RN FlatList). How can I make these things work in rum/re-natal?