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

createActions works incorrectly with Action Definitions array #526

Open
BooleT37 opened this issue Apr 25, 2017 · 0 comments
Open

createActions works incorrectly with Action Definitions array #526

BooleT37 opened this issue Apr 25, 2017 · 0 comments

Comments

@BooleT37
Copy link

When using reflux.createActions with following syntax:
var Actions = Reflux.createActions([{ actionName: "action1", sync: false }, { actionName: "action2", sync: false }, { actionName: "action3", asyncResult: true }]);
it works incorrectly.

Given my example, I expect to get an object
{ action1, action2, action3 }.

But instead I get an object
{ actionName, asyncResult, sync }

Screenshot:
screenshot

Seems like it considers every array item to be an object with action names as properties instead of action definitions therefore we get this wrong behavior.

I am using reflux 6.4.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant