Lint and compiler

incompatible-library

Some library APIs depend on hidden mutable state that conflicts with memoization. Review the specific library and compiler diagnostic; do not force memoization over such an API.

Formal Syntax & Structure

react syntaxreact
react-hooks/incompatible-library

Working Example

Example Snippetreact
export default function App({snapshot}){return <p>{snapshot.count}</p>}
React Reference