docs: remove duplicate entry for default option (#4519)

delete the duplicated `default` parameter description.
This commit is contained in:
Ben 2022-04-22 16:34:53 +08:00 committed by GitHub
parent 648a70e97b
commit 28cf9fed28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,7 +41,6 @@ type DataT = {
* _pick_: only pick specified keys in this array from the `handler` function result
* _watch_: watch reactive sources to auto-refresh
* _initialCache_: When set to `false`, will skip payload cache for initial fetch. (defaults to `true`)
* _default_: A function that returns the default value (before the handler function returns its value).
Under the hood, `lazy: false` uses `<Suspense>` to block the loading of the route before the data has been fetched. Consider using `lazy: true` and implementing a loading state instead for a snappier user experience.