-
```js
import create from 'zustand';
const useStore = create(set => ({
test: { name: 'lili', age: 10 },
update: () => set({ test: { age: 11 }})
})
```
the expected result state is ` tes…
-
```ts
export interface IStore {
toast: ToastProps;
resetToast: () => void;
}
export const store = proxy({
toast: {
success: null,
error: null,
open: false,
},
resetT…
-
I have recently gotten familiar with Jotai and still searching for a concrete list of Jotai advantages over Recoil.
somehow wondering why there should be Jotai state manager with absolutely similar a…
-
## update 2020年12月07日22:56:18
mobx 其实对新手来说上手还是需要动脑的,并且状态也不算特别好追踪相比redux的time machine之流。目前有一个更好的选择是 valtio 。功能完备,以及足够少的 API 就能轻松体验到状态管理的好处。
写这篇主要是为了填个坑。。。
## 正文
~~我指着一个地道对朋友(@OctupleSak…
-
I am using react-tracked to handle the game state of a board game I am making. However, since proxy-compare ignores class instances by default, none of the render optimizations react-tracked offers wo…
-
I noticed that `addComputed` also uses subscribe.
https://github.com/pmndrs/valtio/blob/master/src/utils.ts#L192
Can a `notifyInSync` flag be passed into the function as well?
-
When we try to store a object containing [platform objects](https://stackoverflow.com/questions/49783889/javascript-typeerror-illegal-invocation-but-im-not-calling-any-function), the `proxy` function …
-
**Käsitteen tyyppi**
CONCEPT
**Ehdotettu termi suomeksi**
maaseudun kehittäminen
**Ehdotettu termi ruotsiksi**
landsbygdsutveckling
**Ehdotettu termi englanniksi**
rural development
**Tarkoit…
-
As discussed in [this discussion](https://github.com/tannerlinsley/react-query/discussions/2768), the MutationCache is currently ever growing. This can be a problem because mutations are not shared li…
-
For some reason I cannot subscribe to a portion of state.
I cannot provide my original code with the error, but I made a sandbox [example](https://codesandbox.io/s/react-typescript-forked-m0s2f?fil…