anza-xyz / anza-xyz/wallet-adapter

Use `requestIdleCallback` when polling for wallets, if available

Ouverte
#334 2 commentaires 1 réaction 0 personnes assignées Voir sur GitHub
Langage dominant
TypeScript
Étoiles
2k
Forks
1.1k
Merge moyen
10 h 19 min
PR mergées (30 j)
3

Description

This is a follow on from #327. If we're going to poll for wallets indefinitely in `scopePollingDetectionStrategy` (eg. to capture the case where a wallet is installed in the browser mid-session) then let's use `requestIdleCallback` wherever available. This will make it so that the polling work never blocks work that the app has scheduled at a high priority.

See https://developer.mozilla.org/en-US/docs/Web/API/Background_Tasks_API for how this works.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.