Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

New feature: $createObservableFunction#48

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
yyx990803 merged 4 commits intovuejs:masterfromregou:createObservableFunction
Jul 28, 2017

Conversation

regou
Copy link
Collaborator

@regouregou commentedJul 14, 2017
edited
Loading

Convert function calls to observable sequence which emits the call arguments.
This make vue-rx become more collaborative with components that using callbacks

@regouregou requested a review fromyyx990803July 14, 2017 10:57
@regouregou self-assigned thisJul 14, 2017
@regou
Copy link
CollaboratorAuthor

regou commentedJul 25, 2017
edited
Loading

@yyx990803 It's been a while... Will you review this or should I merge directly ?
My fork is already on our production environment.
It'll be great if the community able to use it after the next release.

The usage is like this:
In template, normal callback
In constructor.
Maybe can save you some time.

@yyx990803
Copy link
Member

@regou thanks for the PR! This one slipped through the notifications.

I've got some feedback regarding the API: when I see a method being called in the template, I tend to look for it inside themethods block, but since it's registered imperatively, it can technically appear anywhere (lifecycle hooks,subscriptions function...) So this makes it less obvious to locate where a method is defined.

Maybe similar to thedomStreams option, we can have anobservableMethods option that makes it more declarative, which just calls$createObservableMethod internally (btw,$createObservableMethod seems more consistent withmethods).

@regou
Copy link
CollaboratorAuthor

@yyx9908035c8f9c3
With simplified example

@yyx990803yyx990803 merged commitbb0edcb intovuejs:masterJul 28, 2017
@SangKaSangKa mentioned this pull requestJul 30, 2017
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@yyx990803yyx990803Awaiting requested review from yyx990803

Assignees

@regouregou

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@regou@yyx990803@wx-ps

[8]ページ先頭

©2009-2025 Movatter.jp