masa-finance / masa-react

Masa React Framework

Home Page:https://masa.finance

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tech debt: refactor masa-state in masa-react

simodrws opened this issue · comments

Current

masa-react currently has no concise state management of the masa-sdk state (called Masa from here on).

The dependency graph is currently as follows:

update from wallet (wagmi, old way) --> update state object --> react-query listens for change in state object --> wallet info keeps getting changed.

Masa is a stateless object, our goal with masa-react is to get a frontend state-wrapper for this object.

Goal

Masa should be dependant on wagmi. There should be no dependencies on Masa regarding the wallet.