Closed patapizza closed 3 years ago
I tried to reproduce this, but can't. I copied your snippet, adding a :do-something
event handler. I can type into the input. When I hit return, the dispatch function is called and the input is cleared.
Do you get something different? What sequence of steps do you take and exactly when do you see the unexpected behavior? Perhaps it would be useful to know which version of reagent and re-frame you're using, as well as what browser.
Hey,
I'm having issues with resetting an input field after dispatching an event. Most times the input value doesn't update, although the underlying atom is updated.
Here's the snippet:
I tried with
dispatch-sync
as well.Inlining the function at callsites works a bit more reliably, but this is quite redundant.
What am I missing?
Thanks!