1.0.0 • Published 1 year ago

@macfja/svelte-redux-devtools v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Redux Devtools connector for Svelte

Allow to track and rewind stores value with Redux Devtools.

GitHub Repo stars Download per week License NPM version JavaScript Style Guide: Biomejs

Installation

NPM

npm install @macfja/svelte-redux-devtools

Usage

<script lang="ts">
import { writable } from "svelte/store"
import { trackStores } from "@macfja/svelte-redux-devtools";
let name = writable("John");
let age = writable(33)

trackStores({ name, age }, { prefix: 'app', hasOneState: true })

</script>

<h1>Hello {$name}!</h1>

<input bind:value={$name} />
<input bind:value={$age} type="range" min={0} max={120} />

Contributing

Contributions are welcome. Please open up an issue or create PR if you would like to help out.

Read more in the Contributing file

License

The MIT License (MIT). Please see License File for more information.