Last 12 weeks · 0 commits
3 of 6 standards met
Fixes #25 Okay, so... this turned into a whole thing. It's a breaking change but worth it in my opinion. As I mentioned in #25, there's a new API called which replaces with a few benefits. One benefit is the whole source part goes away. This is particularly interesting for mutik, because it means we can essentially do away with the Provider wholesale. To get the typing right and to ensure (now , more on that in a second) has access to the store I've turned into a function that returns both the store and the hook to access it. Usage is something like this: One of the new things with the is that selectors aren't required to be memoized. From my understanding, with essentially you'd resubscribe to the store every time the selector changed. on the other hand has dedicated support for selectors... hell, it even memoizes for us! The net result is a far simpler/smaller implementation. The last bit of cool news: is going to be released in React v18 but it _also_ is being published in and will be backwards compatible with all hooks versions. I set the React version to the latest v16. No more experimental react installs!
Repository: jaredpalmer/mutik. Description: A tiny (495B) immutable state management library based on Immer Stars: 323, Forks: 8. Primary language: TypeScript. Languages: TypeScript (92.7%), HTML (7.3%). License: MIT. Homepage: https://npm.im/mutik Topics: immer, react, state-management. Open PRs: 25, open issues: 1. Last activity: 3y ago. Community health: 57%. Top contributors: jaredpalmer, cometkim, josiahwiebe, souporserious, iliasbhal.