Sigi framework document
Introduction
Basic
Recipes
FAQ
基本概念
深入
常见问题

StateSelector

When sharing EffectModule cross muti components, select a partial state from the whole AppState in EffectModule to avoid useless rendering is a common requirement. Sigi provide selector API in useModule hook and useModuleState hook to meet this requirement. Component can select the states they care about through this API, and every other parts of the AppState changes would be ignored and won't trigger rerender.