vue-rx icon indicating copy to clipboard operation
vue-rx copied to clipboard

Request: TodoMVC implementation

Open Symbitic opened this issue 8 years ago • 3 comments

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.

Symbitic avatar Sep 08 '17 17:09 Symbitic

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

regou avatar Sep 09 '17 23:09 regou

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.

cuong-nguyen avatar Nov 08 '18 06:11 cuong-nguyen

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

regou avatar Nov 08 '18 11:11 regou