1.0.0 • Published 4 months ago

@zubridge/tauri-v1 v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

streamlined state management for Tauri v1 apps

Why

tldr: I want to use Zustand in my Tauri v1 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 v1 app
  • Single store workflow across IPC boundary
  • 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.

Note that this package only supports Tauri v1. If you need Tauri v2 support, see the @zubridge/tauri package.

1.0.0

4 months ago

0.1.0-next.0

4 months ago

0.0.1-next.3

4 months ago

0.0.1-next.2

4 months ago

0.0.1-next.1

4 months ago

0.0.1-next.0

4 months ago

1.0.0-next.1

4 months ago

1.0.0-next.0

4 months ago