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

Function FetchImage

example/withSuspense/Storage.tsx:50–56  ·  view source on GitHub ↗
({ storagePath })

Source from the content-addressed store, hash-verified

48};
49
50const FetchImage = ({ storagePath }) => {
51 const storage = useStorage();
52
53 const { data: imageURL } = useStorageDownloadURL(ref(storage, storagePath));
54
55 return <img src={imageURL} alt="demo download" style={{ width: '200px', height: '200px' }} />;
56};
57
58export function Storage() {
59 const app = useFirebaseApp();

Callers

nothing calls this directly

Calls 2

useStorageFunction · 0.85
useStorageDownloadURLFunction · 0.85

Tested by

no test coverage detected