1.3.1 • Published 6 months ago
@shared-state/core v1.3.1
@shared-state/core
The core package of @shared-state
Quick Start
Install @shared-state/core
pnpm install @shared-state/core
Example
Basic
import { createSharedState } from "@shared-state/core";
const CountState = createSharedState(0);
CountState.get(); // Get value
CountState.set((count) => count + 1); // Set value
const onSharedStateChange = ({ previousState, nextState }) =>
console.log(previousState, nextState)
CountState.subscribe(onSharedStateChange); // Subscribe state
CountState.unsubscribe(onSharedStateChange)
1.3.1
6 months ago
1.2.0
1 year ago
1.1.0
1 year ago
1.3.0
1 year ago
1.0.0
2 years ago
0.0.18
2 years ago
0.0.19
2 years ago
0.0.12
2 years ago
0.0.13
2 years ago
0.0.14
2 years ago
0.0.15
2 years ago
0.0.16
2 years ago
0.0.17
2 years ago
0.0.11
3 years ago
0.0.10
3 years ago
0.0.9
3 years ago
0.0.8
3 years ago
0.0.7
3 years ago
0.0.6
3 years ago
0.0.5
3 years ago
0.0.4
3 years ago
0.0.3
3 years ago
0.0.2
3 years ago
0.0.1
3 years ago