GitShow/jaredpalmer/mutik
jaredpalmer

mutik

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

by jaredpalmer
immerreactstate-management
Star on GitHubForkWebsitenpm

TypeScript

323 stars8 forks5 contributorsQuiet · 3y agoSince 2020MIT

Meet the team

See all 5 on GitHub →
jaredpalmer
jaredpalmer29 contributions
cometkim
cometkim1 contribution
josiahwiebe
josiahwiebe1 contribution
souporserious
souporserious1 contribution
iliasbhal
iliasbhal1 contribution

Languages

View on GitHub →
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

Recent fixes

View closed PRs →
just-be-dev
Migrate to useSyncExternalStore, make typesafeMergedPR

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
Ensure useSelector returns correct value typeMergedPR

was returning the type instead of the expected . tsdx lint failed on line 96. I ran on it and that's why that range is updated.

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

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: 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.

·@ofershap

Replace github.com with gitshow.dev