EmerisHQ / demeris

Emeris web app
https://app.emeris.com/
Apache License 2.0
12 stars 2 forks source link

fix: fix useAccount s.t. it's implemented as a singleton #1757

Closed fl-y closed 2 years ago

fl-y commented 2 years ago

Description

Fixed useAccount s.t. it's implemented as a singleton. Reduces calls to window.keplr.getKey at least 50%

Fixes: #1756


github-actions[bot] commented 2 years ago

Visit the preview URL for this PR (updated for commit 4a4ce6a):

https://emeris-app--pr1757-fix-1756-fix-keplr-u-ot9vg7he.web.app

(expires Sat, 14 May 2022 14:46:25 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

faboweb commented 2 years ago

e2e failing

caudurodev commented 2 years ago

Reduces calls to window.keplr.getKey at least 50%

Can you explain how this code achieves this? . Nevermind - above clarifies.