Skip to content

fix: update multisig loading#243

Merged
carlhong merged 2 commits intomasterfrom
feat/carl/loading
Feb 14, 2026
Merged

fix: update multisig loading#243
carlhong merged 2 commits intomasterfrom
feat/carl/loading

Conversation

@carlhong
Copy link
Collaborator

@perrornet
Copy link
Contributor

preview environment is ready at https://243-25d3ee6.multisig-preview.subscan.io

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR targets multisig “loading/refresh” behavior (ref. subscan-explorer/subscan#5152) by restructuring multisig data fetching and adding an extrinsic update callback to refresh in-progress data after submissions.

Changes:

  • Trigger in-progress multisig record fetching from the provider layer and adjust multisig hooks to expose loading state.
  • Fix stale-hook closures by adding proper useCallback dependencies and by selecting Subscan/Subquery fetch functions explicitly.
  • Add an onTxUpdate callback path from WalletStateExtrinsicLaunchTxButtonMultisig to refresh in-progress records while tx progresses.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
src/providers/multisig-provider.tsx Triggers fetchInProgress() on mount via provider to kick off multisig record loading.
src/hooks/subscan.ts Updates Subscan hook callbacks to depend on network and sets multisig detail to null on error.
src/hooks/multisig.ts Removes implicit auto-fetch and exposes loading state from useMultisigRecords.
src/hooks/combineQuery.ts Refactors data-source selection logic and updates types for multisigAccount nullable handling.
src/components/WalletState.tsx Adds onTxUpdate handler to refresh in-progress records after tx updates.
src/components/ExtrinsicRecords.tsx Alters fetching effects for confirmed/cancelled tabs/pagination (currently disables them).
src/components/ExtrinsicLaunch.tsx Adds onTxUpdate prop passthrough (but onTxFail is still not forwarded).
src/components/Entries.tsx Shows a spinner instead of “-” when call data is empty.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@perrornet
Copy link
Contributor

preview environment is ready at https://243-308812f.multisig-preview.subscan.io

@carlhong carlhong merged commit 3666588 into master Feb 14, 2026
2 checks passed
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.

3 participants

Comments