Skip to content

Commit 548758c

Browse files
committed
2 parents 25b58be + 919fcfa commit 548758c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

readme.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
Simple promise tracker React Hoc. You can see it in action in this [Live Demo](https://codesandbox.io/s/wy04jpmly7), and find the basic info to get started in this [post](https://www.basefactor.com/react-how-to-display-a-loading-indicator-on-fetch-calls).
44

5+
For detailed information check out the [project site](https://lemoncode.github.io/react-promise-tracker/)
6+
57
# Why do I need this?
68

79
Sometimes we need to track blocking promises (e.g. fetch or axios http calls), and control whether to
@@ -86,7 +88,7 @@ export const AppComponent = (props) => (
8688
Using react-promise-tracker as is will just display a single spinner in your page, there are cases where you want to display a given spinner only blocking certain area of the screen (e.g.: a product list app with a shopping cart section.
8789
We would like to block the ui (show spinner) while is loading the product, but not the rest of the user interface, and the same thing with the shopping cart pop-up section.
8890

89-
![Shopping cart sample](/img/started//00-shopping-cart-sample.png)
91+
![Shopping cart sample](/resources/00-shopping-cart-sample.png)
9092

9193
The _promiseTracker_ hooks exposes a config parameter, here we can define the area that we want to setup
9294
(by default o area). We could just feed the area in the props of the common spinner we have created

0 commit comments

Comments
 (0)