Skip to content

Commit

Permalink
Don't log in computed
Browse files Browse the repository at this point in the history
  • Loading branch information
1whatleytay committed Nov 16, 2024
1 parent cebb6d8 commit f9cb3f6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/utils/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,10 @@ export function useStorage(
function createEditor(): Editor {
const current = tab()

invoke('send_trace', { text: `computing editor for tab ${current?.title} and line count ${current?.lines.length}` })
.then(() => { })
queueMicrotask(() => {
invoke('send_trace', { text: `computing editor for tab ${current?.title} and line count ${current?.lines.length}` })
.then(() => { })
})

return new Editor(
current?.lines ?? ['Nothing yet.'],
Expand Down

0 comments on commit f9cb3f6

Please sign in to comment.