You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ An elegant, lightweight (~1KB gzipped) utility to deduplicate concurrent calls t
11
11
12
12
English | [简体中文](README.zh-CN.md)
13
13
14
-
- Demo <https://idmp.haozi.me>
14
+
- Demo <https://idmp.js.org/>
15
15
16
16
## Breaking Changes
17
17
@@ -28,7 +28,7 @@ English | [简体中文](README.zh-CN.md)
28
28
importidmpfrom'idmp'
29
29
30
30
const getInfo =async () => {
31
-
const API =`https://idmp.haozi.me/api?/your-info`
31
+
const API =`https://idmp.js.org/api?/your-info`
32
32
returnawaitfetch(API).then((d) =>d.text())
33
33
}
34
34
@@ -48,7 +48,7 @@ Check the network console, there will be only 1 network request, but 10 callback
48
48
49
49
```typescript
50
50
const getInfoById =async (id:string) => {
51
-
const API =`https://idmp.haozi.me/api?/your-info&id=${id}`
51
+
const API =`https://idmp.js.org/api?/your-info&id=${id}`
52
52
returnawaitfetch(API).then((d) =>d.json())
53
53
}
54
54
@@ -160,7 +160,7 @@ In React, you can share requests using SWR, Provider and more complex state mana
160
160
2.**Provider**: Needs centralized data management. The data center can't perceive which modules will consume the data, need to maintain the data for a long time, and dare not delete it in time
161
161
3.**Redux**: Should focus on state changes and sequences, not data sharing. `idmp` lets you focus more on local state
162
162
163
-
See [demo](https://idmp.haozi.me) and [source code](https://github.com/ha0z1/idmp/tree/main/demo)
163
+
See [demo](https://idmp.js.org/) and [source code](https://github.com/ha0z1/idmp/tree/main/demo)
164
164
165
165
So when module A or module B's code is deleted, there is no need to maintain their cache.
0 commit comments