MCPcopy Index your code
hub / github.com/FirebaseExtended/reactfire / Comp

Function Comp

test/useObservable.test.tsx:85–89  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 }) => {

Callers

nothing calls this directly

Calls 1

useObservableFunction · 0.85

Tested by

no test coverage detected