re-frame

https://github.com/Day8/re-frame/blob/master/docs/README.md https://github.com/Day8/re-frame/blob/master/docs/External-Resources.md
sveri 2020-07-11T19:19:52.400600Z

Hi, I have a modal that contains an input like this:

[:input#new-spec-name-input
 {:value     (<sub [::subs/new-modal-name]) :placeholder "Name" :required true
  :on-change #(>evt [::ev/update-new-modal-name (ut/get-value-of-event %)])}]
where <sub and >evt are just two wrapper functions around re-frame/dispatch. Now, on every change, the state is updated and the input displays the text as it should. But my when I run my UI tests, some of them fail, as some key presses are not recognized or maybe swallowed while updating the state. Beforehand I used a local component state atom where this did not happen. Am I doing something wrong? Is there a better way to update the state?

sveri 2020-07-11T19:29:59.401100Z

Thank you very much 🙂