add patterns tab with examples
This commit is contained in:
parent
4e7e715f10
commit
1855dae35e
4 changed files with 40 additions and 11 deletions
|
|
@ -225,8 +225,8 @@ export function Repl({ embedded = false }) {
|
|||
stop();
|
||||
}
|
||||
};
|
||||
const handleUpdate = () => {
|
||||
isDirty && activateCode();
|
||||
const handleUpdate = (newCode) => {
|
||||
(newCode || isDirty) && activateCode(newCode);
|
||||
logger('[repl] code updated! tip: you can also update the code by pressing ctrl+enter', 'highlight');
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue