Skip to content

Commit

Permalink
fix indexer fallback to chain
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahSaso committed May 23, 2024
1 parent cf3accc commit 2090039
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions packages/state/recoil/selectors/indexer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,14 @@ export const queryIndexerSelector = selectorFamily<any, QueryIndexerParams>({
return null
}

// Throw other errors. Recoil throws promises when waiting for other
// selectors to finish, and we don't want to prevent that.
throw err
// Recoil throws promises when waiting for other selectors to finish,
// and we don't want to prevent that.
if (err instanceof Promise) {
throw err
}

console.error(err)
return null
}

try {
Expand Down

0 comments on commit 2090039

Please sign in to comment.