src/hooks/stash-before.ts
Function stashBefore
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function stashBefore<H extends HookContext = HookContext>(fieldName?: string) {
const beforeField = fieldName || 'before';
return (context: H) => {
checkContext(context, 'before', ['get', 'update', 'patch', 'remove'], 'stashBefore');