Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
zustand-debounce
Advanced tools
Readme
zustand-debounce is a library that extends the capabilities of Zustand to provide a JSON state storage system with delayed (debounced) writing to storage. With this tool, you can reduce the number of write operations to storage by delaying and grouping them.
✅ 🐙 Lightweight!! 367 B gzipped.
✅ 🚀 Easy integration into your projects.
✅ 🕒 Customize the debounce time according to your needs.
✅ 🔄 Avoid frequent writes to storage.
✅ Full TypeScript support.
pnpm add zustand-debounce
# o
npm install zustand-debounce
# o
yarn add zustand-debounce
import { createDebouncedJSONStorage } from "zustand-debounce"
// Replace createJSONStorage with createDebouncedJSONStorage
// Experience the enchantment of delayed writes ✨
export const usePersonStore = create<PersonState & Actions>()(
persist(storeApi, {
name: "person-storage",
storage: createDebouncedJSONStorage(firebaseStorage, {
debounceTime: 2000, // Debounce time in milliseconds ⏳
}),
}),
)
Contributions are welcome. If you find an issue or have an idea to improve zustand-debounce, feel free to open an issue or submit a pull request.
Licensed as MIT open source.
with 💖 by AbianS
FAQs
zustand-debounce is a library that extends the capabilities of [Zustand](https://github.com/pmndrs/zustand) to provide a JSON state storage system with delayed (debounced) writing to storage. With this tool, you can reduce the number of write operations t
The npm package zustand-debounce receives a total of 30 weekly downloads. As such, zustand-debounce popularity was classified as not popular.
We found that zustand-debounce 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.