Skip to content

Commit 9acbad7

Browse files
authored
Update README.md
1 parent 1ca1bc4 commit 9acbad7

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

README.md

+47
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,53 @@ npm i @ryfylke-react/rtk-query-loader
3030

3131
You can read more about the features @ [the docs](https://rtk-query-loader.ryfylke.dev/Features/).
3232

33+
34+
35+
<details>
36+
<summary> 🔬 We're also properly tested! (✓ 30/30)</summary>
37+
38+
---
39+
40+
* **aggregateToQuery**
41+
* ✓ It aggregates query status (167 ms)
42+
* **useCreateQuery**
43+
* ✓ It creates a query (107 ms)
44+
* ✓ The query can throw error (108 ms)
45+
* ✓ You can refetch the query (645 ms)
46+
* **<AwaitLoader />**
47+
* ✓ Renders loading state until data is available (130 ms)
48+
* ✓ Will pass arguments properly (129 ms)
49+
* **withLoader**
50+
* ✓ Renders loading state until data is available (132 ms)
51+
* ✓ onError renders when applicable (130 ms)
52+
* ✓ onFetching renders when applicable (319 ms)
53+
* ✓ Internal state won't reset when using whileFetching (272 ms)
54+
* ✓ Internal state will reset when using onFetching (271 ms)
55+
* ✓ Can use custom loader component (129 ms)
56+
* ✓ loaderComponent is backwards compatible (121 ms)
57+
* ✓ Can defer some queries (231 ms)
58+
* ✓ Can defer all queries (130 ms)
59+
* ✓ Loaders with no queries render immediately (4 ms)
60+
* ✓ Can remount a component that has a failed query (161 ms)
61+
* **createLoader**
62+
* ✓ Normally, deferred queries do not throw (205 ms)
63+
* ✓ Deferred queries throw error when configured to (209 ms)
64+
* ✓ Can send static payload to loader (7 ms)
65+
* ✓ Loader passes props through queriesArg to queries (128 ms)
66+
* **.extend()**
67+
* ✓ Can extend onLoading (5 ms)
68+
* ✓ Can extend onError (128 ms)
69+
* ✓ Can extend onFetching (156 ms)
70+
* ✓ Can extend whileFetching (133 ms)
71+
* ✓ Can extend queries (122 ms)
72+
* ✓ Can extend deferred queries (230 ms)
73+
* ✓ Can extend many times (282 ms)
74+
* ✓ Can extend with only transform (133 ms)
75+
* ✓ Can partially extend config (138 ms)
76+
77+
---
78+
</details>
79+
3380
## Example
3481
A simple example of a component using rtk-query-loader:
3582

0 commit comments

Comments
 (0)