---
title: "Comment by Andrew Robida on \"State Management in Astro: A Deep Dive into Nanostores\" | Hashnode"
description: "Great article! Question: Does Astro have reactivity when that state changes in a nanostore? If not what methods can be used to make a Astro component reflect th"
url: "https://hashnode.com/posts/state-management-in-astro-a-deep-dive-into-nanostores/66e2790c9a659d4b81f9665c/comment/66e2ab3c6d1e41a060942fd6"
---

[Discussion](https://hashnode.com/posts/state-management-in-astro-a-deep-dive-into-nanostores/66e2790c9a659d4b81f9665c)

Comment [State Management in Astro: A Deep Dive into Nanostores](https://hashnode.com/posts/state-management-in-astro-a-deep-dive-into-nanostores/66e2790c9a659d4b81f9665c)

[Andrew Robida](https://hashnode.com/@Thear)

[Sep 12, 2024](https://hashnode.com/posts/state-management-in-astro-a-deep-dive-into-nanostores/66e2790c9a659d4b81f9665c/comment/66e2ab3c6d1e41a060942fd6)

Great article! Question: Does Astro have reactivity when that state changes in a nanostore?

If not what methods can be used to make a Astro component reflect the change in state on the ui?

[Andrew Robida](https://hashnode.com/@Thear)

[Sep 12, 2024](https://hashnode.com/posts/state-management-in-astro-a-deep-dive-into-nanostores/66e2790c9a659d4b81f9665c/comment/66e2ab3c6d1e41a060942fd6#reply-66e2abf048dfe754e7626d33)

Awe! I see your using an event listener in Astro good shit!

[Meir-Josef Cohen](https://hashnode.com/@MeirJC)

[Sep 12, 2024](https://hashnode.com/posts/state-management-in-astro-a-deep-dive-into-nanostores/66e2790c9a659d4b81f9665c/comment/66e2ab3c6d1e41a060942fd6#reply-66e2aeae753e8d1d614a8945)

[Andrew Robida](https://hashnode.com/@Thear) yes, with the `.subscribe` method to the store.

[Meir-Josef Cohen](https://hashnode.com/@MeirJC)

[Sep 12, 2024](https://hashnode.com/posts/state-management-in-astro-a-deep-dive-into-nanostores/66e2790c9a659d4b81f9665c/comment/66e2ab3c6d1e41a060942fd6#reply-66e2aec89bdd48f9398c4187)

Happy you enjoyed it!

[Minha Imran](https://hashnode.com/@minha1230)

[Sep 12, 2024](https://hashnode.com/posts/state-management-in-astro-a-deep-dive-into-nanostores/66e2790c9a659d4b81f9665c/comment/66e2ab3c6d1e41a060942fd6#reply-66e3327464d91e430de6a7fd)

[Andrew Robida](https://hashnode.com/@Thear)Awe, thanks for noticing! 😊 Yeah, we're using an event listener in Astro for a smoother, more dynamic experience. Speaking of which, we're running an AI survey to see how developers and gamers are leveraging AI in their projects. It's a quick one, and we’d love to get your insights! If you're interested, feel free to check it out.
