Skip to content

Commit

Permalink
enhance: NM only marks fetch processing in dev mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ntucker committed Jan 19, 2020
1 parent 02a2b0a commit 3bfec50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rest-hooks/src/state/NetworkManager.ts
Expand Up @@ -122,7 +122,7 @@ export default class NetworkManager implements Manager {
switch (action.type) {
case FETCH_TYPE:
this.handleFetch(action, dispatch);
action.meta.nm = true;
if (process.env.NODE_ENV !== 'production') action.meta.nm = true;
return next(action);
case RECEIVE_DELETE_TYPE:
case RECEIVE_MUTATE_TYPE:
Expand Down

0 comments on commit 3bfec50

Please sign in to comment.