Skip to content

Commit

Permalink
📝 在贡献文档解释为什么采用缓存优先模式
Browse files Browse the repository at this point in the history
  • Loading branch information
neila-a committed Apr 26, 2024
1 parent 5cee9ad commit 4dbc8a2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
10 changes: 8 additions & 2 deletions CONTRIBUTION.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,20 @@
- 你必须使用最新的依赖项。 如果它们不兼容,请修复它们。
如果无法修复它们,请将 package.json 中的版本号改为“小于最新的可运行版本”。

## 后备方案
## 为什么是这样

### 后备方案

像 canvas、audio 这些 HTML5 元素不需要后备方案,因为在连 HTML5 都不完整支持的浏览器上 Verkfi 会直接报错推出。

### 分享
#### 分享

分享功能不止与浏览器的版本有关,还和浏览器的配置有关,所以需要作为例外显示后备方案。

### PWA

PWA的缓存方案采取的是缓存优先模式,因为对于 Verkfi 来说,保持可用比保持最新更重要。

## 存储库结构

此存储库是一个 monorepo 存储库。
Expand Down
1 change: 0 additions & 1 deletion packages/core/src/app/layout/layoutClient.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import {
ReactNode,
createElement,
useContext,
useReducer,
Dispatch
} from 'react';
import {
Expand Down

0 comments on commit 4dbc8a2

Please sign in to comment.