diff --git a/packages/react-query-devtools/src/CachePanel/ActiveQuery.tsx b/packages/react-query-devtools/src/CachePanel/ActiveQuery.tsx index 540126ccc6..477f96e366 100644 --- a/packages/react-query-devtools/src/CachePanel/ActiveQuery.tsx +++ b/packages/react-query-devtools/src/CachePanel/ActiveQuery.tsx @@ -65,7 +65,7 @@ const ActiveQuery = ({ promise?.catch(noop) } - const currentErrorTypeName = useMemo(() => { + const currentErrorTypeName = React.useMemo(() => { if (activeQuery && activeQueryState?.error) { const errorType = errorTypes.find( (type) =>