urbit / bridge

An application for interacting with Azimuth.
MIT License
96 stars 25 forks source link

perf: Recovery Phrase + Passphrase flow triggers multiple Roller requests for each keystroke #994

Closed tomholford closed 2 years ago

tomholford commented 2 years ago

Screenshot

image

Context

See Mnemonic.tsx, it appears that we generate a new wallet in onValues, in order to query the roller for the list of owned points

Mitigation

Either refactor the hook dependency logic and / or debounce the onValues / wallet generation (which triggers the API call)