Skip to content

Feature(asr): optimize wizard performance and refactor state management#325

Merged
ishvindersethi22 merged 3 commits intodevelopfrom
feature/dataset-draft
Apr 1, 2026
Merged

Feature(asr): optimize wizard performance and refactor state management#325
ishvindersethi22 merged 3 commits intodevelopfrom
feature/dataset-draft

Conversation

@Dhara124
Copy link
Copy Markdown
Collaborator

@Dhara124 Dhara124 commented Apr 1, 2026

Description

This PR optimizes the Synthetic ASR Wizard's performance and refactors state management to ensure a smoother user experience and robust data preservation. It also synchronizes the branch with the latest upstream changes.

Key Changes

  • Performance Optimization: Implemented React.memo and useCallback for all wizard stages (Stages 1-6) to prevent redundant re-renders.
  • Improved Dirty Check: Refactored isDirty logic in SyntheticASRWizard.jsx using stable hashing for each stage's data.
  • State Preservation: Ensured handleSaveAsDraft and handleNext correctly capture and persist the latest form state.

Verification Plan

  • Verified that wizard stages no longer re-render unnecessarily on parent state changes.
  • Confirmed that the "Dirty Check" correctly identifies modified data across all wizard stages.
  • Validated that drafts are saved and loaded correctly from the backend.

@netlify
Copy link
Copy Markdown

netlify bot commented Apr 1, 2026

Deploy Preview for indic-arena ready!

Name Link
🔨 Latest commit 1897b4b
🔍 Latest deploy log https://app.netlify.com/projects/indic-arena/deploys/69cca3c7a195cd00078dfbaf
😎 Deploy Preview https://deploy-preview-325--indic-arena.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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.

2 participants