Skip to content

Commit 4d8f5a0

Browse files
committed
Fix #519: Support in operator for useParams()
1 parent c05ce35 commit 4d8f5a0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/utils.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,9 @@ export function createMemoObject<T extends Record<string | symbol, unknown>>(fn:
158158
},
159159
ownKeys() {
160160
return Reflect.ownKeys(fn());
161+
},
162+
has(_, property) {
163+
return property in fn();
161164
}
162165
});
163166
}

0 commit comments

Comments
 (0)