fix: update / fork logic
This commit is contained in:
parent
7225b0b18d
commit
a45d87667f
2 changed files with 12 additions and 4 deletions
|
|
@ -17,7 +17,7 @@ import { prebake } from './prebake.mjs';
|
|||
import * as tunes from './tunes.mjs';
|
||||
import PlayCircleIcon from '@heroicons/react/20/solid/PlayCircleIcon';
|
||||
import { themes } from './themes.mjs';
|
||||
import { settingsMap, useSettings, setLatestCode, updateUserPattern } from '../settings.mjs';
|
||||
import { settingsMap, useSettings, setLatestCode, updateUserCode } from '../settings.mjs';
|
||||
import Loader from './Loader';
|
||||
import { settingPatterns } from '../settings.mjs';
|
||||
import { code2hash, hash2code } from './helpers.mjs';
|
||||
|
|
@ -148,7 +148,7 @@ export function Repl({ embedded = false }) {
|
|||
cleanupDraw();
|
||||
},
|
||||
afterEval: ({ code, meta }) => {
|
||||
updateUserPattern(code);
|
||||
updateUserCode(code);
|
||||
setMiniLocations(meta.miniLocations);
|
||||
setWidgets(meta.widgets);
|
||||
setPending(false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue