Fork me on GitHub
#membrane
<
2022-02-02
>
zimablue13:02:50

this can't be the right way but it's working (canvas): (defn trigger-redraw []   (.dispatchEvent     (get-canvas)     (js/MouseEvent. "mousemove")))

phronmophobic20:02:59

@zimablue. Just released a new version that adds repaint support to webgl, com.phronemophobic/membrane {:mvn/version "0.9.31.7-beta"} Usage:

(defonce canvas-info (webgl/run
                       (membrane.component/make-app #'todo/todo-app todo/todo-state)
                       {:container canvas}))

(def repaint (:membrane.webgl/repaint canvas-info))

(swap! todo/todo-state
            update :todos
            conj {:complete? true
                  :description "third"})
(repaint)