From 5e4abdf83051e127fe70a15a44fbf5cefca32fc9 Mon Sep 17 00:00:00 2001 From: Jmeas Date: Sat, 14 Jul 2018 07:52:36 -0700 Subject: [PATCH] Set fetching to be true on initial mount for non-lazy requests --- src/fetch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fetch.js b/src/fetch.js index 076210b..f3939a3 100644 --- a/src/fetch.js +++ b/src/fetch.js @@ -54,7 +54,7 @@ export class Fetch extends React.Component { method: props.method.toUpperCase(), }), requestName: props.requestName, - fetching: false, + fetching: !this.isLazy(), response: null, data: null, error: null,