Simple state management with Hybrid Persistence. Every change automatically syncs with intelligent optimization!
Simple state management with Auto Config System
Your wishlist is empty
Click "Add Item" to start building your wishlist
This wishlist is automatically optimized for URL sharing and offline storage. Changes are persisted and sync across browser sessions.
Count: 0
Message: Hello from slug-store!
Simple hook for state management with automatic optimization
// Simple state management with Hybrid Persistence
import { useSlugStore } from 'slug-store/client'
function WishlistApp() {
const [wishlist, setWishlist] = useSlugStore('wishlist', {
items: [],
view: 'grid',
filter: 'all'
}, {
hybrid: true // Persist to URL and offline storage
})
// That's it! Your state is now shareable and durable.
return (
<div>
{wishlist.items.map(item => (
<div key={item.id}>{item.name}</div>
))}
</div>
)
}Get started with Slug Store v4.0 in your Next.js application today.