feat: implement useSelector
I added an optional `useSelector` hook for subscribing to stores with a selector function which might be preferred in some use cases. SSR is handled in the same way as in useStore.
I split size limit in package.json into two sets:
- `min`: original set
- `max`: original set and useSelector hook
Original import footprint is not affected.
合并状态:未合并 2 条评论