reto
reto copied to clipboard
Flexible and efficient React Store with hooks.
```jsx import AppStorages from '../../Storages/AppStorage' const Amap = (props) => { const UI = useStore(UIStorages) const App = useStore(AppStorages) let _AMap, _map = null let i = 0; // ...somecode...
[](https://renovatebot.com) Welcome to [Renovate](https://togithub.com/renovatebot/renovate)! This is an onboarding PR to help you understand and configure settings before regular Pull Requests begin. 🚦 To activate Renovate, merge this Pull Request....
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6. Commits 7efb22a 1.2.6 ef88b93 security notice for additional prototype pollution issue c2b9819 isConstructorOrProto adapted from PR bc8ecee test from prototype pollution PR See full...
不需要在Provider里notify,因为useContext的缘故,即使上层组件受SCU或者Memo的影响,子组件也一定会重渲染。 而且似乎这个库,会带来更重的心智负担,毕竟是依靠顶层setState的状态库,子组件需要做好充足的缓存才能应付更新。 仅讨论
Hi,无意中找到了这个库,发现我最近写的一个库和你的实现原理基本一致 !看来我们的想法高度一致啊哈哈哈! 大概看了下代码,有一处地方有细微的差别: * https://github.com/awmleer/reto/blob/master/src/consumer.tsx#L48 * https://github.com/nekocode/use-shared-state/blob/master/src/index.ts#L77 当 hook 所在组件重新渲染且 deps 参数发生改变时,是否重新订阅会更好呢?
Thanks for you great work! I think reto need dev tool for better development experience like redux. do you think so?
Bumps [minimist](https://github.com/minimistjs/minimist) from 1.2.5 to 1.2.8. Changelog Sourced from minimist's changelog. v1.2.8 - 2023-02-09 Merged [Fix] Fix long option followed by single dash [#17](https://github.com/minimistjs/minimist/issues/17) [Tests] Remove duplicate test [#12](https://github.com/minimistjs/minimist/issues/12) [Fix]...
Bumps [json5](https://github.com/json5/json5) from 2.2.0 to 2.2.3. Release notes Sourced from json5's releases. v2.2.3 Fix: [email protected] is now the 'latest' release according to npm instead of v1.0.2. (#299) v2.2.2 Fix: Properties...
Bumps [qs](https://github.com/ljharb/qs) from 6.5.2 to 6.5.3. Changelog Sourced from qs's changelog. 6.5.3 [Fix] parse: ignore __proto__ keys (#428) [Fix] utils.merge: avoid a crash with a null target and a truthy...
Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component) from 0.2.0 to 0.2.2. Release notes Sourced from decode-uri-component's releases. v0.2.2 Prevent overwriting previously decoded tokens 980e0bf https://github.com/SamVerschueren/decode-uri-component/compare/v0.2.1...v0.2.2 v0.2.1 Switch to GitHub workflows 76abc93 Fix issue where decode...