vuejs / vue-rx

👁️ RxJS integration for Vue.js.
MIT License
3.35k stars 190 forks source link

Request: TodoMVC implementation #56

Open Symbitic opened 7 years ago

Symbitic commented 7 years ago

I think there should be an implementation of TodoMVC using vue-rx. Or if not the full TodoMVC, then at least a simple 'todo' example. A real world application's needs would probably align closer with the todo app than with the counter examples, and it would probably help new users better understand how to use it.

regou commented 7 years ago

Vue-rx for just simple TODOS are unnecessary. Maybe this firebase seach project? https://github.com/acoshift/vue-rxjs-example

cuong-nguyen commented 6 years ago

Hi @regou, I saw this in the example provided

.do(() => { this.page = 1 }) // reset page if query changed

I am wondering if this is the right way with stream, because it modifies page stream. Is there away for page stream to listen to q stream and reset if q stream has changed.

regou commented 6 years ago

Hi @regou, I saw this in the example provided

.do(() => { this.page = 1 }) // reset page if query changed

I am wondering if this is the right way with stream, because it modifies page stream. Is there away for page stream to listen to q stream and reset if q stream has changed.

On this example this is indeed the right way In some cases .distinctUntilChanged then .do is better