chore(bridge): prewarm hook, route key docs, quote retry rename#224
Conversation
…module Rename messageRequestKey to quoteRefreshRetry, merge duplicate signer imports, drop redundant staleTime in useBridgeTxQuery, add cross-references between bridge tx cache keys and preview route signatures, and expose useBridgeRoutePreparationPrewarm for side-effect-only preparation.
|
Caution Review failedPull request was closed or merged during review No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (7)
WalkthroughRefactored bridge route preparation logic to introduce a dedicated prewarm hook for background fetching, reorganized route signature computation for caching purposes, and consolidated import paths for retry-related utilities across multiple files. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Deploying interwovenkit with
|
| Latest commit: |
29b4837
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://8e105467.interwovenkit.pages.dev |
| Branch Preview URL: | https://cursor-bridge-prewarm-cleanu.interwovenkit.pages.dev |
Deploying interwovenkit-staging with
|
| Latest commit: |
29b4837
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://be0179e4.interwovenkit-staging.pages.dev |
| Branch Preview URL: | https://cursor-bridge-prewarm-cleanu.interwovenkit-staging.pages.dev |
Deploying interwovenkit-testnet with
|
| Latest commit: |
29b4837
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://d5254965.interwovenkit-testnet.pages.dev |
| Branch Preview URL: | https://cursor-bridge-prewarm-cleanu.interwovenkit-testnet.pages.dev |
Follow-up cleanup from PR #223 review:
useBridgeRoutePreparationPrewarmruns the same preparation queries with avoidreturn type so the side-effect-only usage is explicit inBridgeFields.@/data/signerimport foruseOfflineSignerand related hooks inpreparation.ts.staleTimeonuseBridgeTxQuery(still set via spread fromcreateBridgeTxQueryOptions/ placeholder options).getBridgePreparationRouteKey(tx cache identity) andgetRouteSignatureinuseRouteRefresh(preview “meaningful change” detection).messageRequestKey.ts→quoteRefreshRetry.ts(git rename) forshouldRetryBridgeMsgsAfterQuoteRefresh.Tests:
pnpm exec vitest run src/pages/bridge(and targeted FooterWithMsgs);pnpm exec tsc --noEmitin package.Summary by CodeRabbit
Refactor
Tests