For AI agents: the documentation index is at llms.txt. Markdown versions are available by appending .md to any page URL, including this page's markdown.
Event system
Subscribe to sync lifecycle events for state management and UI updates.
Subscribe to typed events for UI updates, notifications, or side effects.
Subscribing to events
Use onEvent to listen to all event types. It returns an unsubscribe function.
const unsubscribe = client.onEvent((event) => {
switch (event.type) {
case "syncStart":
console.log("Sync started");
break;
Published with Edda