()
| 83 | |
| 84 | // a component that subscribes to the observable |
| 85 | const Comp = () => { |
| 86 | const { data } = useObservable('test-stale-on-rerender', observable$, { suspense: false }); |
| 87 | |
| 88 | return <span data-testid="comp">{`${data}`}</span>; |
| 89 | }; |
| 90 | |
| 91 | // a component that conditionally renders its child based on props |
| 92 | const ConditionalRenderer = ({ renderChildren }: { renderChildren: boolean }) => { |
nothing calls this directly
no test coverage detected