You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Every useStore create a setState now. The cost of communicator middleware will be expensive when the new state passed in setState is huge and the number of components(use useStore hooks) is big.
Enhance:
// beforeconstuseStore=(modelName: string,depActions?: string[])=>{const[,setState]=useState(Global.State[modelName].state)// ...}// expectedconstuseStore=(modelName: string,depActions?: string[])=>{// If Context existconst{[modelName]: { setState }}=useContext(GlobalContext)// If notconst[,setState]=useState(Global.State[modelName].state)// ...}
The text was updated successfully, but these errors were encountered:
Every useStore create a setState now. The cost of communicator middleware will be expensive when the new state passed in setState is huge and the number of components(use useStore hooks) is big.
Enhance:
The text was updated successfully, but these errors were encountered: