Skip to content

Created a Store for state management, especially to track the ModelTraining status in Train component#71

Open
PoonamMehan wants to merge 1 commit intocode100x:mainfrom
PoonamMehan:feature/state-management-for-TrainModel
Open

Created a Store for state management, especially to track the ModelTraining status in Train component#71
PoonamMehan wants to merge 1 commit intocode100x:mainfrom
PoonamMehan:feature/state-management-for-TrainModel

Conversation

@PoonamMehan
Copy link

State management especially for TrainModel component

When user is training one model and we want to restrict the user to train another one till the first one is completed. It works(maintains state) even when we switch between Camera, Generate Images, Packs.

Changes in code:

  • Created /apps/web/store

  • Created DashboardClient (/web/components)

  • Edited Dashboard (/web/app/dashboard/page.tsx) to separate client side and server side logic to wrap the components in a state Provider.
    Screenshot 2025-06-06 022631

  • State Handling logic in Train Model component (/web/components/Train.tsx)
    Screenshot 2025-06-06 023054

We can further create a slice to save the progress of filled form in "Train Model" component (upon switches between other tabs like Camer, Generate Image, Packs)

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.

1 participant