Skip to content

Add optimistic updates and cache synchronization - #284

Merged
Lakes41 merged 3 commits into
Adamantine-guild:mainfrom
Goodnessoj:issue-219-optimistic-cache-sync
Jul 27, 2026
Merged

Add optimistic updates and cache synchronization#284
Lakes41 merged 3 commits into
Adamantine-guild:mainfrom
Goodnessoj:issue-219-optimistic-cache-sync

Conversation

@Goodnessoj

@Goodnessoj Goodnessoj commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Summary (#219)

  • Add reusable optimistic cache helpers and wire preference updates to immediate cache patches with rollback on failure.
  • Write confirmed access-check and attestation mutation results into exact TanStack Query cache entries for cross-screen synchronization.
  • Add targeted attestation invalidation for issuer-key refreshes and document the optimistic update rules for future contributors.

Closes #219

Tests

  • ./node_modules/.bin/vitest run tests/optimisticCache.test.ts tests/hooks/useUpdatePreferences.test.tsx tests/attestationQueryCache.test.ts tests/hooks/useAccessCheckMutation.test.ts tests/mutationQueue.test.ts tests/mutationReplayer.test.ts tests/hooks/useGuilds.test.ts tests/hooks/useMembership.test.ts tests/offlineCache.test.ts tests/passCache.test.ts tests/walletScopedCache.test.ts

@Lakes41
Lakes41 merged commit c423adf into Adamantine-guild:main Jul 27, 2026
1 check passed
@Goodnessoj
Goodnessoj deleted the issue-219-optimistic-cache-sync branch July 28, 2026 17:30
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.

Add optimistic updates and intelligent cache synchronization for user interactions

2 participants