GitShow/developit/unistore
developit

unistore

๐ŸŒถ 350b / 650b state container with component actions for Preact & React

by developit
architecturepreactreduxstatesubscriptionunistore
Star on GitHubForkWebsitenpm

JavaScript

2.9k stars134 forks37 contributorsQuiet ยท 5y agoSince 20173.5.2

Meet the team

See all 37 on GitHub โ†’
developit
developit159 contributions
namankheterpal
namankheterpal6 contributions
vincentaudebert
vincentaudebert5 contributions
heldr
heldr4 contributions
kokjinsam
kokjinsam4 contributions
eduardoborges
eduardoborges3 contributions
marvinhagemeister
marvinhagemeister2 contributions
kadmil
kadmil2 contributions

Languages

View on GitHub โ†’
JavaScript100%

Commit activity

Last 12 weeks ยท 0 commits

Full graph โ†’

Community health

2 of 6 standards met

Community profile โ†’
42
โœ“READMEโ—‹Licenseโ—‹Contributingโœ“Code of Conductโ—‹Issue Templateโ—‹PR Template

Recent PRs & issues

Quiet ยท Last activity 5y ago
See all on GitHub โ†’
civancza
Fixing default devtools exportOpenIssue

Hi! ๐Ÿ‘‹ Firstly, thanks for your work on this project! ๐Ÿ™‚ Today I used patch-package to patch for the project I'm working on. Here is the diff that solved my problem: This issue body was partially generated by patch-package.

civancza ยท 2y ago
crazy4groovy
Improved looping; safely mutate listeners queueOpenPR

Admittedly I can't run the tests on my Windows machine :( So take this PR with a grain of salt. npm-run-all --silent -p build:main build:integrations build:combined -s size docs Error: ENOENT: no such file or directory, open 'D:\dev\projects\unistore\src\integrations\.js' Error: ENOENT: no such file or directory, open 'D:\dev\projects\unistore\src\combined\.js' Build output to dist: 554 B: unistore.es.js 323 B: unistore.js 391 B: unistore.umd.js 325 B ERROR There is no matching file for full/preact.js in D:\dev\projects\unistore Cheers

crazy4groovy ยท 3y ago
boazberman
Fix broken example in the README.mdOpenPR

In the example store.setState was called with what could be a stale state. In order to use the current state, one must call store.getState. Similar to how in React if you call setState without a callback it is a potential bug.

boazberman ยท 3y ago

Recent fixes

View closed PRs โ†’
azzurro
fixed connect issue with stale props (zombie children)MergedPR

See blog post for the issue/solution: https://kaihao.dev/posts/Stale-props-and-zombie-children-in-Redux

azzurro ยท 1y ago
aduth
Micro-optimize action binding by preallocating arguments arrayMergedPR

It doesn't seem I can easily edit or fork the referenced benchmark, but in the latest Chrome (78), this appears to perform slightly better than the current implementation: !image Benchmark details Setup: ``` const store7 = createStore(); let viaPreallocated = (function viaPreallocated(store, action) { return function() { let args = new Array(arguments.length + 1); args[0] = store.getState(); for (let i=0; i It's a technique we use in our state library's selector binding. The size bump is bigger than expected, not significant, but enough to fail tests without adjusting the permitted bundle size.

aduth ยท 3y ago
Structured data for AI agents

Repository: developit/unistore. Description: ๐ŸŒถ 350b / 650b state container with component actions for Preact & React Stars: 2850, Forks: 134. Primary language: JavaScript. Languages: JavaScript (100%). Homepage: https://npm.im/unistore Topics: architecture, preact, redux, state, subscription, unistore. Latest release: 3.5.2 (6y ago). Open PRs: 10, open issues: 36. Last activity: 5y ago. Community health: 42%. Top contributors: developit, namankheterpal, vincentaudebert, heldr, kokjinsam, eduardoborges, marvinhagemeister, kadmil, SolarLiner, goblindegook and others.

ยท@ofershap

Replace github.com with gitshow.dev