mento-protocol / governance-ui

An open source interface for the Mento protocol governance
https://governance.mento.org
0 stars 0 forks source link

Spike: State refactor: Assessment & documentation #75

Closed RyRy79261 closed 5 months ago

RyRy79261 commented 6 months ago

Overview

Given that we're using wagmi v2, and we don't have too much state presently. I propose we reduce the state management to the lowest complexity for the first iteration.

The tanstack features afforded by wagmi v2 allow for very granular control over the behaviours of queries.

The intention of this refactor is to not pre-optimize, but also to document, explicitly, the overall state, externalizes & dependencies. This will be essential to making an efficient & effective move to a state manager like zustand and in general provide more explicit procedure to dapp creation.

The objective of this task is not to completely and perfectly map out the app, but as a start of process of identifying and documenting the state of the app. This should be a foundational document for considering future development.

Core Tasks

Outline current state:

Actions: