Skip to content

fix: handle PendingQueryContext in linkedComponent#8

Merged
flyon merged 1 commit intodevfrom
fix/pending-query-context
Mar 28, 2026
Merged

fix: handle PendingQueryContext in linkedComponent#8
flyon merged 1 commit intodevfrom
fix/pending-query-context

Conversation

@flyon
Copy link
Copy Markdown
Member

@flyon flyon commented Mar 28, 2026

Summary

  • linkedComponent shows loading spinner while PendingQueryContext resolves instead of warning and returning null
  • loadData handles null/error results gracefully (empty object fallback, error logging)
  • resolvedSubjectId added to useEffect deps so data loads when context resolves
  • Fuseki test URL uses shared FUSEKI_BASE_URL constant from @_linked/core

Depends on: Semantu/linked PR (PendingQueryContext in @_linked/core)

Test plan

  • 39 tests pass in @_linked/react (6 new PendingQueryContext tests)
  • PeaceGame Register page email prefill works after auth

🤖 Generated with Claude Code

Show loading spinner while PendingQueryContext resolves instead of
warning and returning null. loadData handles null/error results
gracefully. Use shared FUSEKI_BASE_URL for test Fuseki port.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@flyon flyon merged commit e9f25bf into dev Mar 28, 2026
3 checks passed
@flyon flyon deleted the fix/pending-query-context branch March 28, 2026 23:45
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