Skip to content

Commit 10dc68a

Browse files
rpalermodrumstannerlinsley
authored andcommitted
use Object.getPrototypeOf instead of .prototype (TanStack#117)
1 parent bd82468 commit 10dc68a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ function isSortingDesc (d) {
193193

194194
function normalizeComponent (Comp, params = {}, fallback = Comp) {
195195
return typeof Comp === 'function' ? (
196-
Comp.prototype.isReactComponent ? (
196+
Object.getPrototypeOf(Comp).isReactComponent ? (
197197
<Comp
198198
{...params}
199199
/>

0 commit comments

Comments
 (0)