1.0.0 • Published 8 months ago
@shared-state/core v1.0.0
@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.0.0
8 months ago
0.0.18
1 year ago
0.0.19
1 year ago
0.0.12
1 year ago
0.0.13
1 year ago
0.0.14
1 year ago
0.0.15
1 year ago
0.0.16
1 year ago
0.0.17
1 year ago
0.0.11
1 year ago
0.0.10
2 years ago
0.0.9
2 years ago
0.0.8
2 years ago
0.0.7
2 years ago
0.0.6
2 years ago
0.0.5
2 years ago
0.0.4
2 years ago
0.0.3
2 years ago
0.0.2
2 years ago
0.0.1
2 years ago