/** * Get the latest network error, unless it has been * dismissed or there has been a successful response * since. * * N.B. ignores errors thrown before you call useNetworkError */ export default function useNetworkError(): [Error | null, () => void];