Skip to content

Add missing queryKeys factory entries and fix misleading hook JSDoc#1282

Open
wheval wants to merge 1 commit into
LabsCrypt:mainfrom
wheval:fix/query-key-factory-missing-entries
Open

Add missing queryKeys factory entries and fix misleading hook JSDoc#1282
wheval wants to merge 1 commit into
LabsCrypt:mainfrom
wheval:fix/query-key-factory-missing-entries

Conversation

@wheval

@wheval wheval commented Jun 28, 2026

Copy link
Copy Markdown

Summary

Test plan

  • Verify useLoanAmortizationSchedule queryKey is still ['loans', loanId, 'amortization']
  • Verify useNotificationPreferences invalidation in useUpdateNotificationPreferences still hits the same key
  • Verify useCreditScore SSE handler invalidates the same key as the query

Closes #1222
Closes #1224

…JSDoc

- queryKeys: add creditScore, creditScoreHistory, yieldHistory, remittanceNft,
  notificationPreferences, and amortization namespaces so every hook can use
  typed, factory-generated keys instead of ad-hoc string arrays (LabsCrypt#1222)
- Replace all inline queryKey literals in useCreditScore, useCreditScoreHistory,
  useYieldHistory, useRemittanceNft, useNotificationPreferences,
  useLoanAmortizationSchedule, and useLoanAmortizationPreview with the new
  factory calls (LabsCrypt#1222)
- useDepositToPool / useWithdrawFromPool: clarify in JSDoc that mutationFn only
  builds an unsigned XDR and must be paired with signTransaction + submit (LabsCrypt#1224)
- useRepayLoan: clarify that it is a full server-side submit, not build-only (LabsCrypt#1224)

Closes LabsCrypt#1222
Closes LabsCrypt#1224
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant