Is there any way to track field changes preserving the stack trace? #2733
-
I'm debugging an issue that I'm facing with zustand where out of nowhere two fields of my store go to What is weird is that I don't set them to So back to my question, is there anyway to track these values? Subscribe didn't work well, it doesn't preserve the stack trace and I think it didn't account for the "silent change". Unfortunately I cannot share my code, so feel free to ask any further questions |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
@shinobu-uwu sure, you can create a custom middleware for logging and track your changes or you can use subscribe |
Beta Was this translation helpful? Give feedback.
@shinobu-uwu sure, you can create a custom middleware for logging and track your changes or you can use subscribe