Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updating the state atom doesnt update the DOM #6

Open
murtaza52 opened this issue Mar 9, 2013 · 0 comments
Open

updating the state atom doesnt update the DOM #6

murtaza52 opened this issue Mar 9, 2013 · 0 comments

Comments

@murtaza52
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant