global config

PHOTO EMBED

Fri Oct 06 2023 10:28:53 GMT+0000 (Coordinated Universal Time)

Saved by @Tphilus #htm

import { SWRConfig } from 'swr';

const swrConfig = {
  fetcher: customFetcher,
  onError: (error) => {
    // Handle errors globally
  },
};

// Wrap your app with SWRConfig
<SWRConfig value={swrConfig}>
  <App />
</SWRConfig>
content_copyCOPY