Modern browser usage with full reactivity
Control event dispatch with the
{ notify: false } option.
Emit and receive events independent of state changes.
Waiting for event...
Demonstrating multiple property updates with a single notification.
Isolate state events using namespaces for complex applications.
{ namespace: 'counter' }{ debug: true }// Primitive State
const count = new VnlState(0);
count.set(5); // Basic usage
count.set(10, { notify: false }); // Silent
// Object State
const user = new VnlState({ name: 'John' });
user.set('name', 'Jane'); // Basic usage