Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion. Support changing middleware at runtime (actions) #14

Open
Cwallice opened this issue Nov 6, 2015 · 0 comments
Open

Suggestion. Support changing middleware at runtime (actions) #14

Cwallice opened this issue Nov 6, 2015 · 0 comments

Comments

@Cwallice
Copy link

Cwallice commented Nov 6, 2015

If one decides to switch his promise factory after actions being declared he is faced to work with old implementation of middlware because action methods that are reposnsible for async operations are hard copied at creation

    var context = _.extend({
        eventLabel: "action",
        emitter: new _.EventEmitter(),
        _isAction: true
    }, PublisherMethods, ActionMethods, definition);

Instead, could it be a wrapper around methods from PublisherMethods ?

@Cwallice Cwallice changed the title Support changing middleware at runtime (actions) Suggestion. Support changing middleware at runtime (actions) Nov 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants