svecosystem / runed

Magical utilities for your Svelte applications (WIP)
https://runed.dev
MIT License
557 stars 28 forks source link

StateHistory #128

Closed moalamri closed 2 months ago

moalamri commented 2 months ago

Describe the feature in detail (code, mocks, or screenshots encouraged)

Hi, thank you so much for this great utility.

Whenever I use an object state with StateHistory I don’t get full history for deep properties.

You can try the buttons on the top of this page to test it as I initiated the StateHistory with the form schema https://svelte-form-builder.pages.dev/

What type of pull request would this be?

None

Provide relevant links or additional information.

No response

moalamri commented 2 months ago

I read your comment on another issue about using snapshot to follow and understand how Svelte 5 works. I used $state.snapshot and it works as expected 👍🏻 Thank you.