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
ActionsClass usage #501
Comments
+1 let me think about this. |
ok there are two options here. remove this.dispatch from alt or remove action classes altogether. |
Hey! I made the exact same complaint here: #359 :D I had a few proposals there toward the end of the thread, all of which would have been major breaking API changes, but probably getting rid of action classes would be the simplest approach by far. |
#503 removes this.dispatch from alt. |
Will be releasing this at some point soon. |
I have some information in my stores, that my actions need to pass when creating an API client object. I'm using alt instances, so the API constructor has no access to these stores - I have to pass the data in Intuitively, I'd do something like this:
Unfortunately, this doesn't work, because the way Alt creates actions rips all the methods off of this class and binds them to an AltAction instead. Do you have any suggestions on alternatives, or maybe how we could improve how makeActions works with a class? As it stands, the classes don't behave like classes at all, and might as well be object hashes.
The text was updated successfully, but these errors were encountered: