redgin-store 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# RedGin Store
|
|
2
2
|
|
|
3
3
|
**A Lightweight, Reactive, and Persistent State Management for Web Components.**
|
|
4
4
|
|
|
@@ -6,7 +6,7 @@ RedGin Store is a surgically optimized Pub/Sub state manager designed specifical
|
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
9
|
-
##
|
|
9
|
+
## The Pain Points
|
|
10
10
|
Building complex Web Components usually leads to several major headaches:
|
|
11
11
|
* **Prop Drilling:** Passing data through five layers of nested components just to update a single value.
|
|
12
12
|
* **Zombie Listeners (Memory Leaks):** Global store listeners that stay in RAM after a component is destroyed, leading to "ghost" updates and performance degradation.
|
|
@@ -15,7 +15,7 @@ Building complex Web Components usually leads to several major headaches:
|
|
|
15
15
|
|
|
16
16
|
---
|
|
17
17
|
|
|
18
|
-
##
|
|
18
|
+
## Purpose & Features
|
|
19
19
|
RedGin Store provides a **Single Source of Truth** that is:
|
|
20
20
|
* 🚀 **Surgically Reactive:** Leverages `queueMicrotask` to batch multiple updates into a single tick.
|
|
21
21
|
* 💾 **Persistent by Design:** Optional LocalStorage integration—hydrate your state automatically on page load.
|
|
@@ -25,7 +25,7 @@ RedGin Store provides a **Single Source of Truth** that is:
|
|
|
25
25
|
|
|
26
26
|
---
|
|
27
27
|
|
|
28
|
-
##
|
|
28
|
+
## Installation
|
|
29
29
|
|
|
30
30
|
### Via npm
|
|
31
31
|
```bash
|