-
[OPIK-2928] [FE] Prevent navigation from Playground during prompt execution (#4029)
发布于
2025-11-11 15:14:10 +00:00 -
[OPIK-2928] [FE] Prevent navigation when playground prompts are running
-
Revision 2: Refactor useNavigationBlocker to return dialog component
-
Revision 3: Add cleanup to reset isRunning on component unmount
-
Revision 4: Add context-aware dialog messages for experiment vs prompt execution
-
Revision 5: Address PR review comments - fix cleanup effect and remove unnecessary useMemo
-
Revision 6: Simplify cleanup - use setIsToStop to prevent queued items
-
Revision 7: Use ref for isToStop and call stopAll in cleanup effect
-
Revision 8: Add setIsRunning(false) to stopAll to reset UI state
-
Fix: Remove unused useEffect import
下载附件
-