-
for example:https://pinia.vuejs.org/cookbook/composing-stores.html a store import b store : Basic type (success) import { state as localeState } from "./locale";
export const state = proxy({
// out of sync
signatureInfo: localeState.wallet_sign_info,
}); |
Beta Was this translation helpful? Give feedback.
Answered by
dai-shi
Dec 30, 2024
Replies: 1 comment
-
In general, Valtio proxies are transparent wrapper around normal JS objects. So, you can do what you can do with JS objects. For reactive solutions, you might be interested in https://github.com/valtiojs/valtio-reactive. We also have https://github.com/valtiojs/derive-valtio, but valtio-reactive is a new kid. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
0xbdm0101
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In general, Valtio proxies are transparent wrapper around normal JS objects. So, you can do what you can do with JS objects.
For reactive solutions, you might be interested in https://github.com/valtiojs/valtio-reactive.
We also have https://github.com/valtiojs/derive-valtio, but valtio-reactive is a new kid.