You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(persona-quiz): drive inter-question preview via persisted feedSettings, not inline variables
Backend's `feedPreview` resolver reads from the user's persisted
`feedSettings` and ignores the inline `filters` argument we'd been passing
through `Feed`'s `variables` prop. That's why the variables-based attempt
left the preview frozen on stale content — the server simply wasn't using
the filter we sent.
Restore the incremental-`followTags` pattern (this time keeping it):
- After every answer, follow the newly-earned tags via `followTags`.
`followedRef` deduplicates so each tag fires at most one mutation.
- `refetchPreview` debounces and invalidates `[RequestKey.FeedPreview]`
cache entries so `Feed` re-fetches against the updated `feedSettings`.
- `Feed` reverts to the same plain config `EditTag` uses
(`feedQueryKey={[RequestKey.FeedPreview, user.id]}`, no `variables`).
- `finishQuiz` only catches the residue (fallback tags backfilled to reach
the target count).
This is the EditTag preview pattern verbatim, which is the one we know works
in funnel-step contexts.
Tests still 4/4 pass; typecheck and lint clean.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments