Skip to content

Commit

Permalink
perf(editor): set value only if snippet id is changed (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
antonreshetov committed Jul 7, 2022
1 parent 4d44455 commit 56bd929
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions commitlint.config.js
Expand Up @@ -10,6 +10,7 @@ module.exports = {
'docs',
'feat',
'fix',
'perf',
'polish',
'refactor',
'release',
Expand Down
3 changes: 2 additions & 1 deletion src/renderer/components/editor/TheEditor.vue
Expand Up @@ -244,8 +244,9 @@ watch(
() => props.lang,
() => setLang()
)
watch(
() => props.modelValue,
() => props.snippetId,
() => setValue()
)
Expand Down

0 comments on commit 56bd929

Please sign in to comment.