mirror of
https://codeberg.org/uzu/strudel
synced 2026-08-04 22:31:04 -04:00
fix: loader
This commit is contained in:
@@ -26,7 +26,7 @@ export function repl({
|
|||||||
pattern: undefined,
|
pattern: undefined,
|
||||||
miniLocations: [],
|
miniLocations: [],
|
||||||
widgets: [],
|
widgets: [],
|
||||||
pending: true,
|
pending: false,
|
||||||
started: false,
|
started: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ export function Repl({ embedded = false }) {
|
|||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
const [replState, setReplState] = useState({});
|
const [replState, setReplState] = useState({});
|
||||||
const { started, isDirty, error, activeCode } = replState;
|
const { started, isDirty, error, activeCode, pending } = replState;
|
||||||
const editorRef = useRef();
|
const editorRef = useRef();
|
||||||
const containerRef = useRef();
|
const containerRef = useRef();
|
||||||
|
|
||||||
@@ -150,8 +150,6 @@ export function Repl({ embedded = false }) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const handleShare = async () => shareCode(activeCode);
|
const handleShare = async () => shareCode(activeCode);
|
||||||
const pending = false;
|
|
||||||
|
|
||||||
const context = {
|
const context = {
|
||||||
embedded,
|
embedded,
|
||||||
started,
|
started,
|
||||||
|
|||||||
Reference in New Issue
Block a user