mirror of
https://github.com/eliasstepanik/strudel.git
synced 2026-01-11 13:48:40 +00:00
fix: loader
This commit is contained in:
parent
9fd2d3d640
commit
ea8aabceed
@ -26,7 +26,7 @@ export function repl({
|
||||
pattern: undefined,
|
||||
miniLocations: [],
|
||||
widgets: [],
|
||||
pending: true,
|
||||
pending: false,
|
||||
started: false,
|
||||
};
|
||||
|
||||
|
||||
@ -101,7 +101,7 @@ export function Repl({ embedded = false }) {
|
||||
}, []);
|
||||
|
||||
const [replState, setReplState] = useState({});
|
||||
const { started, isDirty, error, activeCode } = replState;
|
||||
const { started, isDirty, error, activeCode, pending } = replState;
|
||||
const editorRef = useRef();
|
||||
const containerRef = useRef();
|
||||
|
||||
@ -150,8 +150,6 @@ export function Repl({ embedded = false }) {
|
||||
};
|
||||
|
||||
const handleShare = async () => shareCode(activeCode);
|
||||
const pending = false;
|
||||
|
||||
const context = {
|
||||
embedded,
|
||||
started,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user