mirror of
https://github.com/langgenius/dify.git
synced 2026-05-13 08:57:28 +08:00
In React StrictMode (dev mode), effects are run twice to help detect side effects. The cleanup-only pattern left isMountedRef as false after StrictMode's simulated unmount-remount cycle, causing stop/cancel operations to be skipped even when the component was mounted. Now the effect setup explicitly sets isMountedRef.current = true, ensuring correct behavior in both development and production. |
||
|---|---|---|
| .. | ||
| app | ||
| app-sidebar | ||
| apps | ||
| base | ||
| billing | ||
| custom | ||
| datasets | ||
| develop | ||
| devtools | ||
| explore | ||
| goto-anything | ||
| header | ||
| plugins | ||
| provider | ||
| rag-pipeline | ||
| share | ||
| signin | ||
| sub-graph | ||
| tools | ||
| workflow | ||
| workflow-app | ||
| app-initializer.tsx | ||
| browser-initializer.spec.ts | ||
| browser-initializer.tsx | ||
| sentry-initializer.tsx | ||
| splash.tsx | ||