i'm trying to type into an input field but it's awfully slow
i have a feeling the page is re-rendering on every character
some component watching an atom that is changing on the user input... and redrawing the whole screen
(rum/defc post-comment-input < rum/reactive []
[:form#postcommentinput
[:textarea.fullwidth {
:placeholder "let us be kind"
:on-change (fn [e] (do
(swap! input-state assoc-in [:inputs 0 :comment] (.-value (.-target e)))
))
with :value (get-in @input-state [:inputs 0 :comment])
Should i have an entirely separate atom to prevent watch?
the keyfn was slowing things down
and putting the comment input into a separate atom @app-comment solved the issue