From f60305665c2eba088fdf6e33b2528ceba6fe5743 Mon Sep 17 00:00:00 2001 From: Tony Arcangelini <33258733+arcangelini@users.noreply.github.com> Date: Wed, 6 Dec 2023 14:37:34 +0100 Subject: [PATCH] Export defaultFetchHandler To allow reverting to it when a custom handler is not longer needed --- packages/api-fetch/src/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/api-fetch/src/index.js b/packages/api-fetch/src/index.js index 408f2af0901f15..67be7e910cfbf8 100644 --- a/packages/api-fetch/src/index.js +++ b/packages/api-fetch/src/index.js @@ -188,6 +188,7 @@ function apiFetch( options ) { apiFetch.use = registerMiddleware; apiFetch.setFetchHandler = setFetchHandler; +apiFetch.defaultFetchHandler = defaultFetchHandler; apiFetch.createNonceMiddleware = createNonceMiddleware; apiFetch.createPreloadingMiddleware = createPreloadingMiddleware;