Skip to content

Improve market question auto-load timing#224

Merged
KillariDev merged 1 commit into
mainfrom
feature/market-question-loading
May 19, 2026
Merged

Improve market question auto-load timing#224
KillariDev merged 1 commit into
mainfrom
feature/market-question-loading

Conversation

@KillariDev
Copy link
Copy Markdown
Collaborator

Summary

  • Delay question auto-loading until the question count is resolved, and skip auto-load when the resolved count is zero.
  • Track auto-load attempts by active universe ID so rerenders do not trigger duplicate loads for the same universe.
  • Surface async loading errors from useZoltarUniverse instead of swallowing them, and update market question handlers to match the async flow.
  • Expand market section coverage with regression tests for unresolved counts, zero counts, universe changes, and retry behavior.

Testing

  • Not run: bun run tsc
  • Not run: bun run test
  • Not run: bun run format
  • Not run: bun run check
  • Not run: bun run knip

- Wait for question counts before auto-loading
- Track loads by active universe and surface load errors
- Update question loading handlers to return promises
@KillariDev KillariDev merged commit c711bc4 into main May 19, 2026
0 of 6 checks passed
@KillariDev KillariDev deleted the feature/market-question-loading branch May 19, 2026 12:54
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