Explorar o código

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

GitOrigin-RevId: df957893c8495c582d721716daa20030deb02f72
Alf Eaton %!s(int64=4) %!d(string=hai) anos
pai
achega
ae76850d39
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      services/web/frontend/stories/hooks/use-fetch-mock.js

+ 1 - 0
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