没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
RX查询 随附的电池获取库轻松获取数据并为用户提供更好的体验 为什么 更好的用户体验 使用方便 可配置的 推广 特征 重试 快取 刷新间隔,焦点,在线 突变数据 基本 不带参数查询 最简单的查询是不带参数的参数,它只是一个可观察的包装器。 query方法需要一个回调方法来调用查询。 import { query } from "rx-query" ; characters$ = query ( "characters" , ( ) => this . rickAndMortyService . getCharacters ( ) , ) ; 用静态参数查询 可以使用与不带参数的查询相同的方式来编写具有静态参数(该值不会随时间变化)的查询。 import { query } from "rx-query" ; characters$ = query ( "character" , ( ) => this . rickAndMortyService . getCharacter ( 1 ) , ) ; 将静态参数作为第一个参数传递的另一种方法。 然后,将使用传递的参数来调用查询回
资源推荐
资源详情
资源评论
收起资源包目录
rx-query-master.zip (97个子文件)
rx-query-master
.gitignore 693B
package.json 3KB
tsconfig-dist-cjs.json 134B
tsconfig-dist.json 208B
.npmrc 55B
src
mocks
server.ts 128B
handlers.ts 713B
setup-test.ts 215B
app
app.module.ts 618B
rickandmorty.service.ts 439B
app.component.test.ts 2KB
cache-devtool.component.ts 3KB
app.component.ts 2KB
app-routing.module.ts 375B
character.component.ts 1KB
assets
.gitkeep 0B
mockServiceWorker.js 6KB
main.ts 374B
examples
refresh-on-interval.component.ts 1KB
mocks
orders.mocks.ts 3KB
todos.mocks.ts 861B
index.ts 2KB
pagination.component.ts 4KB
prefetch.component.ts 2KB
basic.component.ts 1KB
typeahead.component.ts 2KB
todo.utils.ts 390B
refresh-on-focus.component.ts 1KB
todos.service.ts 479B
mutate.component.ts 3KB
todos.component.ts 3KB
error.component.ts 1KB
multiple-subscribers.component.ts 2KB
environments
environment.ts 662B
environment.prod.ts 51B
index.html 406B
favicon.ico 948B
stories
rx-query.stories.ts 2KB
styles.css 80B
polyfills.ts 3KB
jest.config.js 108B
tsconfig.spec.json 326B
tsconfig.json 411B
release.config.js 81B
tsconfig-dist-esm.json 132B
.github
workflows
release.yml 717B
ci.yml 518B
.browserslistrc 648B
.eslintrc.js 490B
rx-query
__tests_types__
query.test-d.ts 613B
mutate.ts 695B
cache.ts 17KB
query.ts 9KB
__tests__
query.test.ts 14KB
key.test.ts 546B
prefetch.test.ts 2KB
refresh.test.ts 271B
config.test.ts 277B
refresh.ts 379B
index.ts 495B
prefetch.ts 1KB
key.ts 327B
config.ts 562B
operators.ts 296B
types.ts 3KB
angular.json 3KB
.prettierrc.js 61B
tsconfig.app.json 257B
README.md 8KB
.eslintignore 52B
.storybook
main.js 60B
preview.js 667B
tsconfig.json 289B
preview-head.html 92B
typings.d.ts 77B
tsconfig.base.json 530B
.npmignore 24B
docs
api
rx-query
type-alias-declaration
query-output.md 510B
mutator.md 310B
revalidator.md 1KB
query-config.md 2KB
function-declaration
prefetch.md 2KB
mutate-error.md 410B
reset-query-cache.md 236B
get-query-config.md 249B
mutate-optimistic.md 558B
create-query-key.md 491B
set-query-config.md 488B
mutate-success.md 551B
query.md 2KB
refresh-query.md 487B
variable-declaration
query-cache.md 228B
revalidate.md 248B
map-to-noop-mutation.md 304B
noop-mutate.md 233B
output.json 13KB
.editorconfig 274B
共 97 条
- 1
资源评论
weixin_42119358
- 粉丝: 29
- 资源: 4660
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功