Skip to content

Commit

Permalink
debounce updateConfigTools
Browse files Browse the repository at this point in the history
  • Loading branch information
hatemhosny committed Nov 5, 2023
1 parent 9026101 commit b53671d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/livecodes/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3753,12 +3753,12 @@ const handleUnload = () => {
};

const loadToolsPane = async () => {
const updateConfigTools = (tools: Config['tools']) => {
const updateConfigTools = debounce((tools: Config['tools']) => {
setConfig({
...getConfig(),
tools,
});
};
}, 100);
toolsPane = createToolsPane(
getConfig(),
baseUrl,
Expand Down

0 comments on commit b53671d

Please sign in to comment.