Open siddydutta opened 3 months ago
Fixes https://github.com/cyntler/react-doc-viewer/issues/266.
Usage:
function App() { const handleOnFetchError = (error) => { console.error("Fetch error:", error); // Add any custom error handling here }; return ( <div className="App"> <DocViewer documents={{ uri: "https://example.com/sample.pdf" }} onFetchError={handleOnFetchError} /> </div> ); }
+1 to get this merged
Fixes https://github.com/cyntler/react-doc-viewer/issues/266.
Usage: