We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
runCode
1 parent 04f3a1e commit ba5ba79Copy full SHA for ba5ba79
src/app.tsx
@@ -111,7 +111,7 @@ function AppContent() {
111
setActiveTab('amaranth-source');
112
}
113
114
- async function runCode() {
+ const runCode = React.useCallback(async () => {
115
if (running)
116
return;
117
try {
@@ -155,7 +155,7 @@ function AppContent() {
155
setRunning(false);
156
setOutputOutOfDate(false);
157
158
- }
+ }, [amaranthSource, amaranthVersion]);
159
160
function tabAndPanel({ key, title, titleStyle = {}, content }) {
161
return [
0 commit comments