jaredpalmer

mutik

A tiny (495B) immutable state management library based on Immer

by jaredpalmer

TypeScript

TypeScript92.7%
HTML7.3%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

3 of 6 standards met

Community profile →
57
✓README✓License✓Contributing○Code of Conduct○Issue Template○PR Template
just-be-dev

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!

just-be-dev · 2y ago
just-be-dev

This bumps parcel to the v2 RC. I was hitting some build failures with the current version that this resolves.

just-be-dev · 2y ago
Structured data for AI agents

Repository: jaredpalmer/mutik. Description: A tiny (495B) immutable state management library based on Immer Stars: 322, 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.