-
Couldn't load subscription status.
- Fork 49.7k
Open
Labels
Status: UnconfirmedA potential issue that we haven't yet confirmed as a bugA potential issue that we haven't yet confirmed as a bug
Description
React version: 19.2
Steps To Reproduce
Link to code example:
const Demo = ()=>{
const [count, setCount] = useState(0);
useEffect(()=>{
setCount(123);
},[])
const handleClick = useCallback(()=>{
try {
console.log("do");
} catch (_error) {
console.log("error");
}finally{
console.log("finally");
}
},[])
return <div onClick={handleClick}>Demo {count}</div>
}
const Demo2 = ()=>{
const [count, setCount] = useState(0);
useEffect(()=>{
setCount(123);
},[])
return <div>Demo {count}</div>
}
The current behavior
eslint not work
The expected behavior
eslint work
Metadata
Metadata
Assignees
Labels
Status: UnconfirmedA potential issue that we haven't yet confirmed as a bugA potential issue that we haven't yet confirmed as a bug