You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When visiting a docs page and changing a story so that it throws an error, the docs page successfully shows the error. Reverting the change and make the story render successfully doesn't lead to a recovered docs page. The docs page remains in an error state.
** Disclaimer** This information might be inaccurate, due to it being generated automatically
This is likely related to error boundary handling in the docs page. The fix would involve: 1. Modify code/ui/components/preview/Preview.tsx to ensure the error boundary resets when the story content changes 2. Add a key prop to the error boundary component that changes when the story updates: tsx // In Preview.tsx <ErrorBoundary key={storyId || previewId}> {/* story content */} </ErrorBoundary> This will force the error boundary to remount when the story changes, allowing recovery from errors.
About Greptile
This response provides a starting point for your research, not a precise solution.
Help us improve! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.
Describe the bug
When visiting a docs page and changing a story so that it throws an error, the docs page successfully shows the error. Reverting the change and make the story render successfully doesn't lead to a recovered docs page. The docs page remains in an error state.
Reproduction link
Reproduction steps
System
Additional context
No response
The text was updated successfully, but these errors were encountered: