webfui icon indicating copy to clipboard operation
webfui copied to clipboard

updating the state atom doesnt update the DOM

Open murtaza52 opened this issue 12 years ago • 0 comments

Hi Conrad,

First let me thank you for the excellent framework. This is what I have been looking for a long time !

Conrad this is the use case I have -

  1. I created an initial state (def app-state (atom {:data nil}))

  2. Launched the app (launch-app app-state render-all)

  3. Then did an ajax call which resets the :data key of the app-state

I expected the above to cause the DOM to rerender. (The render-all function loops over the data element and renders it). However there was no change. Any ideas on what I am doing wrong , or what should I do ?

Again thanks for the effort !

Thanks, Murtaza

murtaza52 avatar Mar 09 '13 16:03 murtaza52