filteredConsoleError() — astro Function Reference
Architecture documentation for the filteredConsoleError() function in server.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 0d5e83a7_eb5c_48b9_db07_3c032e751717["filteredConsoleError()"] d27cc44a_e2ff_86d0_e654_f90b112f1bba["server.ts"] 0d5e83a7_eb5c_48b9_db07_3c032e751717 -->|defined in| d27cc44a_e2ff_86d0_e654_f90b112f1bba style 0d5e83a7_eb5c_48b9_db07_3c032e751717 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/integrations/preact/src/server.ts lines 133–144
function filteredConsoleError(msg: string, ...rest: any[]) {
if (consoleFilterRefs > 0 && typeof msg === 'string') {
// In `check`, we attempt to render JSX components through Preact.
// When attempting this on a React component, React may output
// the following error, which we can safely filter out:
const isKnownReactHookError =
msg.includes('Warning: Invalid hook call.') &&
msg.includes('https://reactjs.org/link/invalid-hook-call');
if (isKnownReactHookError) return;
}
originalConsoleError(msg, ...rest);
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does filteredConsoleError() do?
filteredConsoleError() is a function in the astro codebase, defined in packages/integrations/preact/src/server.ts.
Where is filteredConsoleError() defined?
filteredConsoleError() is defined in packages/integrations/preact/src/server.ts at line 133.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free