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

StateHistory with nested object properties #144

Open
benkuper opened this issue Nov 19, 2024 · 1 comment
Open

StateHistory with nested object properties #144

benkuper opened this issue Nov 19, 2024 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@benkuper
Copy link

Change Type

Addition

Proposed Changes

Hello,
I've been trying to use StateHistory for object with nested properties. I understand that there are already 2 issues talking about similar situations, and suggesting using $state.snapshot(), but neither of them showed a clear example of using this alongside StateHistory, so I'm a bit confused on how to implement this.
Also, I guess StateHistory would mainly be used for complex structure rather than simple numbers like in the example so it would be of great value to have an example on how to use it for objects !

Thank you very much

@benkuper benkuper added the documentation Improvements or additions to documentation label Nov 19, 2024
@huntabyte
Copy link
Member

Can you provide a reproduction of what you're trying to do and what is/is not working so we can better assist/update the docs?

Thank you!

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

No branches or pull requests

2 participants