Skip to content

Commit dd24895

Browse files
antfuCopilot
andauthored
Apply batched suggestions from code review
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 7c65d3d commit dd24895

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/devframe/src/in-page-channel/in-page-channel.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,7 @@ describe('in-page channel shared state', () => {
346346
expect(panelCodec.serialize.mock.calls[0]?.[0]).toBe('doc')
347347

348348
function update(state: typeof authority, count: number) {
349+
// With enablePatches=true, mutate() emits patch arrays, while patch() emits an update with patches=undefined (full-state path).
349350
if (mode === 'patch') {
350351
state.mutate((draft) => {
351352
draft.count = count

0 commit comments

Comments
 (0)