Skip to content

Commit

Permalink
docs: ✏️ Use new domain
Browse files Browse the repository at this point in the history
  • Loading branch information
haozi committed Mar 12, 2024
1 parent cb33e74 commit 1a888aa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ An elegant library to solve duplicate and concurrent calls for idempotent functi

English | [简体中文](README.zh-CN.md)

- Demo <https://idmp-ha0z1.vercel.app>
- Demo <https://idmp.haozi.me>

## Usage

Expand Down Expand Up @@ -141,7 +141,7 @@ In React, you can share requests using swr, Provider and more complex state mana
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
3. Redux: Should focus on state changes and sequences, not data sharing. `idmp` lets you focus more on local state

See [demo](https://idmp-ha0z1.vercel.app) and [source code](https://github.com/ha0z1/idmp/tree/main/demo)
See [demo](https://idmp.haozi.me) and [source code](https://github.com/ha0z1/idmp/tree/main/demo)

So when module A or module B's code is deleted, there is no need to maintain their cache.

Expand Down
4 changes: 2 additions & 2 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

[English](README.md) | 简体中文

- Demo <https://idmp-ha0z1.vercel.app>
- Demo <https://idmp.haozi.me>

## 使用

Expand Down Expand Up @@ -141,7 +141,7 @@ fetchData2().then(...) // will skip cache
2. Provider 数据共享: 需要一个中心化的数据管理。数据中心无法感知到哪些模块会消费数据,需要长期维护这些数据,而不敢及时删除
3. Redux 等状态管理库:应该专注的是状态的变化和时序,而非共享数据。`idmp` 让你更关注于局部状态

查看 [demo](https://idmp-ha0z1.vercel.app)[源码](https://github.com/ha0z1/idmp/tree/main/demo)
查看 [demo](https://idmp.haozi.me)[源码](https://github.com/ha0z1/idmp/tree/main/demo)

这样当模块 A 或者模块 B 的代码删除后,是不需要维护他们的缓存的。

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "idmp",
"version": "1.14.11",
"version": "1.14.12",
"keywords": [
"deduplicate network requests",
"idempotent function",
Expand All @@ -16,7 +16,7 @@
"immutable data",
"auto retry"
],
"homepage": "https://idmp-ha0z1.vercel.app",
"homepage": "https://idmp.haozi.me",
"bugs": "https://github.com/ha0z1/idmp/issues",
"repository": {
"type": "git",
Expand Down

0 comments on commit 1a888aa

Please sign in to comment.