From f2d6566c0ba89ddac7cb894661bee647ad352087 Mon Sep 17 00:00:00 2001 From: Kewal Shah Date: Mon, 17 Aug 2020 12:49:55 +0530 Subject: [PATCH] Update effects.md The script `"dev:mock": "cross-env PET_MOCK=mock npm run dev"`, sometimes does not make the app run in mock mode. This is because Parcel builds the app from existing .cache and .dist directories. Removing these folders and running `npm run dev:mock` fixes the problem. --- lessons/effects.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lessons/effects.md b/lessons/effects.md index c8620c05..65a7b64f 100644 --- a/lessons/effects.md +++ b/lessons/effects.md @@ -10,7 +10,7 @@ Since this Petfinder is a real service and we don't want to hammer their API, we `"dev:mock": "cross-env PET_MOCK=mock npm run dev",`. -Now any time you run this `npm run dev:mock` instead of `npm run dev` you'll get mock data and not hit the API. This will work offline and if the API is down or taking too long. +Now any time you run this `npm run dev:mock` instead of `npm run dev` you'll get mock data and not hit the API. This will work offline and if the API is down or taking too long (before running this, you many need to delete existing .cache and .dist folders to allow building in the mock mode). Now let's go install the client. Run `npm install @frontendmasters/pet`.