Replies: 1 comment 3 replies
-
|
Actually, I think it's time to create |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I wanted to track the date time of each history change but didnt want to pollute the object i was tracking..
so i created a custom proxyWithHistory with slight changes to allow this.
The adjustment is tracking history nodes instead of only snapshots in a flat way.
I think maybe this is a more extensible structure.
Do you think this concept could make it into v2?
Adjusted code
original: https://github.com/pmndrs/valtio/blob/main/src/vanilla/utils/proxyWithHistory.ts
Beta Was this translation helpful? Give feedback.
All reactions