Zustand -> Valtio #190
Closed
nosferatu500
started this conversation in
General
Replies: 1 comment 3 replies
-
Would love to hear your experience on transition.
const p = proxyWithHistory(0)
const savedSaveHistory = p.saveHistory
p.saveHistory = () => {
savedSaveHistory()
if (p.history.snapshots.length > 100) {
p.history.snapshots.shift()
--p.history.index
}
}
valtio is unopinionated how you accomplish it. |
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
-
Hi guys, thanks for zustand and valtio.
I started building my application based on zustand. It is a very handy and easy-to-use library.
But I am planning to migrate from zustand to valtio for the following reasons:
But before I want to know about a few things:
Beta Was this translation helpful? Give feedback.
All reactions