open-metadata / OpenMetadata

OpenMetadata is a unified metadata platform for data discovery, data observability, and data governance powered by a central metadata repository, in-depth column level lineage, and seamless team collaboration.
https://open-metadata.org
Apache License 2.0
5.49k stars 1.04k forks source link

ui: alternative for global state management for app wide data #15022

Open Sachin-chaurasiya opened 9 months ago

Sachin-chaurasiya commented 9 months ago

NOTE: THIS IS NOT A BLOCKER FOR ANY RELEASE

At present, React Context is employed to manage globally utilized data in our application. However, this method presents challenges as we need to maintain separate contexts for different data, which becomes increasingly unmanageable as the application expands. To address this, we will adopt Zustand for handling global state.

Zustand is a lightweight, swift, and scalable state management solution. Its straightforward API, built on hooks, provides ease of use. While it maintains clarity and flux-like behavior, it avoids excessive boilerplate or imposing specific opinions.

image

Majorly we have to replace these contexts with zustand

chirag-madlani commented 9 months ago

Let's start using Zustand for globally stored data for the application

chirag-madlani commented 9 months ago

Can you list down the places where we need to implement this? I will review it so that we can plan it better

Sachin-chaurasiya commented 9 months ago

Can you list down the places where we need to implement this? I will review it so that we can plan it better

Yes @chirag-madlani , I have updated the description, thanks