Skip to content

Conversation

vtushar06
Copy link

What kind of change does this PR introduce?
Feature enhancement

Issue Number:

Screenshots/videos:

tour.mp4

If relevant, did you update the documentation?
No documentation updates required for this feature.

Summary
This pull request addresses a critical UX issue by implementing persistent client-side storage of validation results and user code using localStorage with namespaced keys (validation-{chapterIndex}-{stepIndex}). The solution enhances state management through Zustand integration, enabling seamless data restoration and mutation across component lifecycles.
Technical Implementation:

  • Asynchronous validation pipeline utilizing hyperjump JSON Schema validation with robust error handling and Redux-style dispatching
  • Custom React hook (useValidationRestore) orchestrating state restoration via useEffect with SSR compatibility checks

Does this PR introduce a breaking change?
No

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.

Preserve the Validation Results When Revisiting a Lesson
1 participant