EmerisHQ / demeris

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

Refactor the useAccount s.t. it's implemented as a singleton #1756

Closed fl-y closed 2 years ago

fl-y commented 2 years ago

Describe the bug Currently the getKey method is called 762 times before the UI is rendered on initial render of Emeris https://www.loom.com/share/ce44ff65eef649dfb5f370f8eba5badd

This appears to be due to the useAccount method not being a singleton. Unconfirmed but whether it is or not - refactor s.t. it's not called 762 times.

Additional context Related thread https://allinbits.slack.com/archives/C02TBMVAJDN/p1651926233055839