Skip to content

Conversation

@artemmufazalov
Copy link
Member

@artemmufazalov artemmufazalov commented Mar 25, 2024

Closes #617

Screen Shot 2024-03-25 at 14 12 39

@artemmufazalov artemmufazalov force-pushed the vdisk-page branch 4 times, most recently from b3884a2 to 6cf005b Compare March 25, 2024 10:48
@artemmufazalov artemmufazalov marked this pull request as ready for review March 25, 2024 11:13
const ClusterNodesMapContext = createContext<NodesMap | undefined>(undefined);

/** NodesMap - almost constant cluster nodes to hosts mapping */
export function ClusterNodesMapContextProvider({children}: ClusterNodesMapContextProps) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need context? Trigger getNodesList in the component that uses this provider and loaded data will be in global store.

@artemmufazalov artemmufazalov requested a review from ValeraS April 2, 2024 13:05
@artemmufazalov artemmufazalov merged commit ea7ea88 into main Apr 2, 2024
@artemmufazalov artemmufazalov deleted the vdisk-page branch April 2, 2024 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

VDisk page

3 participants