@zubridge/tauri v1.0.0
streamlined state management for Tauri apps
Why
tldr: I want to use Zustand in my Tauri app, seamlessly
Zustand is a great state management library. As with other state libraries such as Redux, it is recommended that a single store is used in your app.
For Tauri apps, accessing state across the main and renderer processes presents a challenge.
Zubridge solves this by enabling a single store workflow, abstracting away the IPC management and state synchronization between processes.
Features
- Use Zustand everywhere in your Tauri app
- Single store workflow across IPC boundary
- Supports Tauri v2
- Supports different Zustand usage patterns
- Handles thunks, inline actions or Redux-style action objects
How It Works
Zubridge uses an additional Zustand store in the front-end (renderer) process, which is synchronized in one direction with your application store in the back-end (main) process.
Actions from the front-end are dispatched via Tauri commands / events to the back-end store, which handles them and updates state accordingly. The front-end store then receives these state updates and synchronizes itself automatically.
Getting Started
See the docs to get started.
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago