friedger / stacks-swaps

Swapping BTC and tokens on Stacks chain
GNU General Public License v3.0
16 stars 15 forks source link

Don't use global constant #18

Open friedger opened 6 months ago

friedger commented 6 months ago

Is your feature request related to a problem? Please describe. The userSession is stored as global constant:

https://github.com/friedger/stacks-swaps/pull/17/files#diff-27710982bc575aa42d74ecfad169cf151047095dd47b929c77c69e241c40e3ad

Describe the solution you'd like Use a Context, something like @stacks/connect-react