
Security News
Vite+ Joins the Push to Consolidate JavaScript Tooling
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
@ilteoood/zorro
Advanced tools
A powerful adapter that enables Zustand stores to connect to Redux DevTools remote server for debugging and state inspection.
Zustand Over Redux Remote Overwatch
A powerful adapter that enables Zustand stores to connect to Redux DevTools remote server for debugging and state inspections.
First, install the required dependencies:
# Install Zustand if you haven't already
npm install zustand
# Install Redux DevTools CLI for the remote server (not needed if you re using Rozenite)
npm install -g @redux-devtools/cli
# Install Zorro
npm install @ilteoood/zorro
# Start the remote server on default port 8000
redux-devtools --hostname=localhost --port=8000
import { create } from 'zustand';
import { remoteDevtools } from '@ilteoood/zorro';
const useStore = create(
remoteDevtools(
(set, get) => ({
count: 0,
increment: () => set((state) => ({ count: state.count + 1 })),
decrement: () => set((state) => ({ count: state.count - 1 })),
}),
{
// All the following parameters are optional
name: 'My Store',
hostname: 'localhost'
port: 8000,
realtime: true,
secure: false
}
)
);
import { withRozeniteReduxDevTools } from '@ilteoood/zorro/metro'
# Wrap your `withRozenite` config with `withRozeniteReduxDevTools`
export default withRozeniteReduxDevTools(withRozenite(...))
Option | Type | Default | Description |
---|---|---|---|
name | string | 'Zustand Store' | Instance name shown in DevTools |
hostname | string | 'localhost' | DevTools server hostname, for React Native it is automatically converted to 10.0.2.2 when running on Android |
port | number | 8000 | DevTools server port |
secure | boolean | false | Use HTTPS/WSS connection |
realtime | boolean | false | Enable/disable realtime connection to DevTools |
enabled | boolean | true | Enable/disable DevTools |
Due to limitations with the Remote DevTools, time travel features like reset, commit, rollback and jump to state are not available.
Can't connect to DevTools server:
Actions not showing:
realtime
is enabled (enabled by default)State not updating:
MIT
Contributions are welcome! Please feel free to open an issue or submit a pull request.
This project is kindly sponsored by Nearform.
FAQs
A powerful adapter that enables Zustand stores to connect to Redux DevTools remote server for debugging and state inspection.
We found that @ilteoood/zorro demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
Security News
Ruby Central’s incident report on the RubyGems.org access dispute sparks backlash from former maintainers and renewed debate over project governance.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.