You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add state management module with sync capabilities and React hooks
- Add @equinor/fusion-framework-module-state with PouchDB sync storage
- Add state management support to @equinor/fusion-framework-app
- Add useAppState hook to @equinor/fusion-framework-react-app
- Add state management cookbooks for examples and replication demos
- Reorganize event system with comprehensive state event types
- Update dependencies and fix formatting issues
Copy file name to clipboardExpand all lines: .changeset/app_state-support.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,15 +6,15 @@ Add state management module support to @equinor/fusion-framework-app
6
6
7
7
This change introduces comprehensive state management capabilities to the app package, allowing developers to easily enable persistent state storage in their Fusion applications.
8
8
9
-
### New Features
9
+
**Features**
10
10
11
11
-**State Module Enabler**: Added `enableState` function that configures the state module with PouchDB storage
12
12
-**Package Exports**: Added new export path `./enable-state` for the state enabler function
13
13
-**Type Definitions**: Added typesVersions support for the new state enabler
14
14
-**Peer Dependencies**: Added `@equinor/fusion-framework-module-state` as an optional peer dependency
15
15
-**Storage Configuration**: Automatic app-scoped storage with key prefixing to prevent state collisions
🎉 Added new cookbook demonstrating state management with useAppState hook in React applications!
8
6
9
7
This comprehensive cookbook 📚 provides developers with practical examples and best practices for using the Fusion Framework state module in React applications.
@@ -12,7 +10,7 @@ The cookbook includes complete state management examples demonstrating simple st
12
10
13
11
Key features include:
14
12
- 📖 Educational documentation with learning objectives, setup instructions, and key concepts
15
-
- 🔷 Full TypeScript implementation with proper type definitions
13
+
- 🔷 Full TypeScript implementation with proper type definitions
16
14
- ⚡ Complete development setup with dev server and build configuration
17
15
18
16
Developers will learn how to configure the state module using `enableAppState`, use the `useAppState` hook for persistent state management, share state between components with unique state keys, manage complex object state with proper update patterns, and follow best practices for organizing state in Fusion applications.
**🚀 Introducing the Fusion Framework State Module**
6
+
7
+
**@equinor/fusion-framework-module-state** is a new reactive state management module with built-in synchronization capabilities and comprehensive event system for enterprise-grade applications.
8
+
9
+
**🗄️ Synchronization Features**
10
+
-**PouchDbSyncStorage**: Bidirectional synchronization with remote databases
11
+
-**Real-time sync events**: Monitor sync progress, errors, and status changes
12
+
-**Conflict resolution**: Automatic handling of concurrent data modifications
13
+
-**Live sync options**: Configurable heartbeat, retry, and timeout settings
14
+
15
+
**📡 Event System**
16
+
Comprehensive event architecture for type-safe state management:
0 commit comments