bitcoin-computer / monorepo

A Turing-complete smart contract system for Bitcoin and Litecoin
https://docs.bitcoincomputer.io/
29 stars 18 forks source link

Add Computer Context #198

Closed ClemensLey closed 5 months ago

ClemensLey commented 5 months ago

All of our example apps would connect to localstorage to determine the logged in user on every navigation. With this PR we are using a React context to store user information so that we only connect to localstorage when the app is loaded instead of when navigating. As access to localstorage is slow this makes navigating around the apps faster.

ltardivo commented 5 months ago

Great!