Skip to content

Conversation

@frdomovic
Copy link
Member

@frdomovic frdomovic commented Jan 26, 2026

Note

Aligns the SDK guide with current APIs and patterns.

  • CRDT examples: Update Vector (use push/update/pop), Counter (Counter<true>, value() returns Result), and LwwRegister (set no longer returns Result).
  • Events: Use #[app::state(emits = for<'a> Event<'a>)]; switch map values to LwwRegister<String>; add Borsh derives/attrs.
  • Private storage: Replace private_storage::entry with #[app::private] struct and private_load_or_default() pattern using UnorderedMap.
  • Patterns: Add derives/inits; use get_mut for counters; adjust value() return types (e.g., u64) and entry(...).or_insert_with(...)? where needed.
  • Minor doc tweaks and consistency fixes across examples.

Written by Cursor Bugbot for commit e27092e. This will update automatically on new commits. Configure here.

@vercel
Copy link

vercel bot commented Jan 26, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
docs Ready Ready Preview, Comment Jan 26, 2026 4:09pm

Request Review

@frdomovic frdomovic merged commit bea3e05 into master Jan 26, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants