# How do you debug state changes using LiveViews?

**URL:** <https://forum.elixirforum.com/t/how-do-you-debug-state-changes-using-liveviews/70044>\
**Category:** Questions\
**Tags:** phoenix, liveview\
**Created:** [March 20, 2025, 8:41am UTC](https://forum.elixirforum.com/t/how-do-you-debug-state-changes-using-liveviews/70044 "2025-03-20T08:41:59Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![jberling](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/jberling/32/37260_2.png) [@jberling](https://forum.elixirforum.com/u/jberling)\
**Post date:** [March 20, 2025, 10:14am UTC](https://forum.elixirforum.com/t/how-do-you-debug-state-changes-using-liveviews/70044/6 "2025-03-20T10:14:10Z")

</div>

No, I can’t find anything that changes the state before “evaluate” is called, but it is called with stale data. Could it be that the socket data is stored in several places after all? Maybe cached?

The current solution is the result of exploring a solution for a complex problem. I’ll try to rebuild it more elegantly. But it bugs me I couldn’t find out why it doesn’t work the way I expected.

---

_[View the full topic](https://forum.elixirforum.com/t/how-do-you-debug-state-changes-using-liveviews/70044)._
