Skip to content

Commit 83ed016

Browse files
committed
chore: update readme
1 parent 07819f5 commit 83ed016

File tree

2 files changed

+32
-3
lines changed

2 files changed

+32
-3
lines changed

README-zh_TW.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -624,6 +624,21 @@ URL query string: ?offset=0&limit=10&users=runkids,hello&company=vue
624624
}
625625
```
626626

627+
使用 `navigation` 可以 push 或是 replace 當前的位置. 預設值為 'push'
628+
```js
629+
useConditionWatcher({
630+
fetcher,
631+
conditions: {
632+
limit: 20,
633+
offset: 0
634+
},
635+
history: {
636+
sync: router,
637+
navigation: 'replace'
638+
}
639+
})
640+
```
641+
627642
## 生命週期
628643

629644
<img src=".github/vue-condition-watcher_lifecycle.jpeg"/>
@@ -923,9 +938,6 @@ function usePagination () {
923938

924939
## TDOD List
925940

926-
- [ ] Cache
927-
- [ ] Prefetching
928-
- [ ] Automatic Revalidation
929941
- [ ] Error Retry
930942
- [ ] Nuxt SSR SSG Support
931943

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,23 @@ URL query string: ?offset=0&limit=10&users=runkids,hello&company=vue
615615
}
616616
````
617617

618+
Use `navigation` to replace or push current location. The default value is 'push'
619+
```js
620+
useConditionWatcher({
621+
fetcher,
622+
conditions: {
623+
limit: 20,
624+
offset: 0
625+
},
626+
history: {
627+
sync: router,
628+
navigation: 'replace'
629+
}
630+
})
631+
```
632+
633+
634+
618635
## Lifecycle
619636

620637
<img src=".github/vue-condition-watcher_lifecycle.jpeg"/>

0 commit comments

Comments
 (0)