Set fetchMock.config.fallbackToNetwork for Storybook (#7369)

GitOrigin-RevId: df957893c8495c582d721716daa20030deb02f72
This commit is contained in:
Alf Eaton 2022-04-04 13:31:47 +01:00 committed by Copybot
parent 2056a85199
commit ae76850d39

View file

@ -1,5 +1,6 @@
import { useEffect } from 'react'
import fetchMock from 'fetch-mock'
fetchMock.config.fallbackToNetwork = true
/**
* Run callback to mock fetch routes, call restore() when unmounted