Skip to content
This repository was archived by the owner on Oct 19, 2019. It is now read-only.

Repository files navigation

rxloop-loading

https://github.com/TalkingData/rxloop/tree/master/packages/loading

rxloop loading plugin

Usage

importrxloopfrom'@rxloop/core';importloadingfrom'@rxloop/loading';constapp=rxloop({plugins: [loading()],});app.model({name: 'modelA',state: {a: 1,},reducers: {add(state){returnstate;},},pipes: {getData(action$){returnaction$.pipe(mapTo({type: 'add',}),);},setData(action$){returnaction$.pipe(mapTo({type: 'add',}),);},},});app.stream('modelA').subscribe((state)=>{console.log(state.loading.getData);});app.stream('loading').subscribe((state)=>{console.log(state);// {// pipes: {// modelA: {// getData: false,// getDataCounter: 0,// setData: false,// setDataCounter: 0,// },// },// }});

About

rxloop loading plugin

Topics

Resources

Stars

1 star

Watchers

7 watching

Forks

Releases

Packages

Used by

Contributors

Languages