({ scheduleUpdate })
| 6 | const longText = 'Long tooltip content to test scheduleUpdate'; |
| 7 | |
| 8 | function TooltipContent({ scheduleUpdate }) { |
| 9 | const [text, setText] = useState(shortText); |
| 10 | |
| 11 | useEffect(() => { |
| 12 | const intervalId = setInterval(() => { |
| 13 | setText(text === shortText ? longText : shortText); |
| 14 | scheduleUpdate(); |
| 15 | }, 2000); |
| 16 | |
| 17 | return () => clearInterval(intervalId); |
| 18 | }); |
| 19 | |
| 20 | return <div>{text}</div>; |
| 21 | } |
| 22 | |
| 23 | function Example(props) { |
| 24 | return ( |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…