Skip to content

Commit 58b475a

Browse files
authored
fix: preventChanges - return original context object (#710)
1 parent a28aaba commit 58b475a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/hooks/prevent-changes.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ export function preventChanges<H extends HookContext = HookContext>(
3434
}
3535
});
3636

37-
return { ...context, data };
37+
context.data = data;
38+
39+
return context;
3840
};
3941
}

0 commit comments

Comments
 (0)