Skip to content

Commit 5d5578f

Browse files
thetaPCShaneK
andcommitted
docs(react): use setPhoto variable
Co-authored-by: Shane <[email protected]>
1 parent b8de688 commit 5d5578f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/react/your-first-app/7-live-reload.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ Add a click handler to the `<IonImg>` element. When the app user taps on a photo
194194
</IonGrid>
195195
```
196196

197-
Remember that removing the photo from the `photos` array triggers the `cachePhotos` method for us automatically.
197+
Remember that removing the photo from the `photos` array triggers the `setPhotos` method for us automatically.
198198

199199
Tap on a photo again and choose the “Delete” option. The photo is deleted! Implemented much faster using Live Reload. 💪
200200

versioned_docs/version-v7/react/your-first-app/7-live-reload.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ Add a click handler to the `<IonImg>` element. When the app user taps on a photo
194194
</IonGrid>
195195
```
196196

197-
Remember that removing the photo from the `photos` array triggers the `cachePhotos` method for us automatically.
197+
Remember that removing the photo from the `photos` array triggers the `setPhotos` method for us automatically.
198198

199199
Tap on a photo again and choose the “Delete” option. The photo is deleted! Implemented much faster using Live Reload. 💪
200200

0 commit comments

Comments
 (0)