tycono 0.1.96-beta.55 → 0.1.96-beta.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -35,14 +35,19 @@ export const SetupWizard: React.FC<SetupWizardProps> = ({ onComplete }) => {
|
|
|
35
35
|
const [resultRoles, setResultRoles] = useState(0);
|
|
36
36
|
const [errorMsg, setErrorMsg] = useState('');
|
|
37
37
|
|
|
38
|
-
// Load team templates
|
|
38
|
+
// Load team templates — delay to let Ink's first render complete
|
|
39
|
+
// Without delay, Ink's synchronous render blocks the event loop
|
|
40
|
+
// and http response callbacks don't fire → timeout
|
|
39
41
|
useEffect(() => {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
const timer = setTimeout(() => {
|
|
43
|
+
fetchSetupTeams()
|
|
44
|
+
.then(setTeams)
|
|
45
|
+
.catch((err) => {
|
|
46
|
+
setErrorMsg(`Failed to load team templates: ${err.message}`);
|
|
47
|
+
setStep('error');
|
|
48
|
+
});
|
|
49
|
+
}, 500);
|
|
50
|
+
return () => clearTimeout(timer);
|
|
46
51
|
}, []);
|
|
47
52
|
|
|
48
53
|
// Esc to cancel (only during input steps)
|