Skip to content

Commit

Permalink
fix lint & add changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
swk777 committed Sep 9, 2024
1 parent 5298c9c commit 6bb75e1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .changeset/thin-dots-rest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@srcbook/shared': minor
'@srcbook/api': minor
'@srcbook/web': minor
---

Add Prettier Support to Code Notebook
2 changes: 1 addition & 1 deletion packages/web/src/components/cells/code.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export default function CodeCell(props: {

channel.on('cell:formatted', callback);
return () => channel.off('cell:formatted', callback);
}, [cell.id, channel]);
}, [cell.id, channel, updateCellOnClient]);

function updateFilename(filename: string) {
updateCellOnClient({ ...cell, filename });
Expand Down

0 comments on commit 6bb75e1

Please sign in to comment.