penumbra-zone / dex-explorer

Web app for visualization the state of the Penumbra DEX
Apache License 2.0
8 stars 1 forks source link

Mobx spike #77

Closed grod220 closed 1 day ago

grod220 commented 5 days ago

Closes https://github.com/penumbra-zone/dex-explorer/issues/66 Closes https://github.com/penumbra-zone/dex-explorer/issues/67

Takes over from: https://github.com/penumbra-zone/dex-explorer/pull/70

An experiment of using Mobx for the connection + streaming status state. Observations:

Pros

Cons

TalDerei commented 2 days ago

from my perspective, using Mobx for managing client-side app state seems to be exactly what we're looking for in a HFT DEX UI since it focuses on fine-grained reactivity, keeping the UI reactive with a performant batch update system while intelligently avoiding unnecessary re-renders.