Skip to content

fix: unwrap discussion snapshot responses once - #8

Merged
ljq29 merged 1 commit into
devfrom
fix/discussion-snapshot-response
Nov 18, 2026
Merged

ljq29 merged 1 commit into
devfrom
fix/discussion-snapshot-response

Conversation

@ljq29

@ljq29 ljq29 commented Nov 18, 2026

Copy link
Copy Markdown
Owner

Summary

  • return discussion snapshot payloads directly from the already-unwrapped authedRequest result
  • preserve pendingVersion after GET, refresh, rollback, and adopt so discussion sends no longer fall back to version 0

Root cause

The snapshot client read data.data after apiRequest had already returned payload.data. Refresh succeeded on the server, but the frontend stored undefined and subsequent sends failed with discussion.snapshot_conflict.

Tests

  • pnpm --filter @deeix/web check
  • pnpm --filter @deeix/web build

@ljq29
ljq29 merged commit f76cc66 into dev Nov 18, 2026
12 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.

1 participant