From ae76850d3977c20e60411dfd4353734c7fc97d29 Mon Sep 17 00:00:00 2001 From: Alf Eaton Date: Mon, 4 Apr 2022 13:31:47 +0100 Subject: [PATCH] Set fetchMock.config.fallbackToNetwork for Storybook (#7369) GitOrigin-RevId: df957893c8495c582d721716daa20030deb02f72 --- services/web/frontend/stories/hooks/use-fetch-mock.js | 1 + 1 file changed, 1 insertion(+) diff --git a/services/web/frontend/stories/hooks/use-fetch-mock.js b/services/web/frontend/stories/hooks/use-fetch-mock.js index 0998f70a30..8dba7df560 100644 --- a/services/web/frontend/stories/hooks/use-fetch-mock.js +++ b/services/web/frontend/stories/hooks/use-fetch-mock.js @@ -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