-
Notifications
You must be signed in to change notification settings - Fork 52
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
Ability to module-namespace actions #199
Comments
I submitted PR's for both |
👍 |
@sungwoncho Could you implement this in mantra-cli? Thanks :) |
@nadeemja I see that the PRs are still pending. Let's talk about implementing it in CLI after this issue is closed. |
@sungwoncho Generally I would agree with you, but can we really expect any more progress on this issue? @arunoda has officially retired, and lost interest in meteor. Probably the same can be said about Kadira as a whole. Perhaps you could take over as a maintainer? Or, @theodorDiaconu? |
As mantra is not about meteor (it is in fact an architecture pattern for react-apps), i am not sure, if @arunoda has "retired" from this project as well. I strongly advice to keep mantra living, as it solves real problems with modern react-apps. I also would like to have module-namespaced actions and I hope we can merge that. I would like to help contributing to mantra-core if possible. |
To be hones, I'm out of Meteor world as well, writing pure Node.JS + React + MobX + Apollo apps, but my applications are structured using Mantra specification. Yet I do not use Mantra's Komposer but wrote on super simple one for Mobx. Mantra is really helpful and should be maintained, it is a really rich source of knowledge. |
The app I'm developing is in Meteor and Mantra, and I'm very glad to have Mantra handling front-end code. Since Mantra is back-end agnostic, I'm glad to have the freedom to move to a different back-end if I ever wish to do so. |
i'm really not sure why all the pr's for this haven't been merged in. i have this working in a production app, submitted pr's with full tests, and it's fully backwards-compatible. |
I'm curious why we haven't yet heard from @arunoda here, and/or on Mantra Talk, about his plans for Mantra. Since Mantra was developed from the ground up to be back-end agnostic, and have no required dependencies on Meteor, one would think he would still be involved in Mantra. If for any reason he is not continuing to develop Mantra, he should make that known so the Mantra community can take over. |
@markoshust I'm not sure if this was ever merged but I do appreciate your fix |
Thank you sir! No worries. Hope it helps others.
…On Wed, Jun 7, 2017 at 8:07 PM smooJitter ***@***.***> wrote:
@markoshust <https://github.com/markoshust> I'm not sure if this was ever
merged but I do appreciate your fix
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#199 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAarJUMm9BHmAgqi2pzfCmHfpkxnZlTBks5sBzszgaJpZM4JJ9WV>
.
|
Example of actions format is given here:
https://kadirahq.github.io/mantra/#sec-Module-Definition
This lays out the following format for actions:
This is ok, however it would be much better to namespace the actions by the module instead. When dealing with a lot of actions within many modules, I'd much rather have this format:
For example, given this layout currently:
Since actions are not namespaced per module, it's very easy to overwrite and cross bounds of other files. Right now, calling
actions.foo.setTitle
, with the above structure, leads to a lot of problems.This leads one to currently do the following:
This properly resolves the ambiguity problem, because now I can call
actions.coreFoo.setTitle
, andactions.fooFoo.setTitle
, and I know which one I'm calling, however this is not DRY.It would be much better to be able to have this layout:
and properly module-namespace as follows:
So, then the action can be called with
actions.core.foo.setTitle
andactions.foo.foo.setTitle
.The text was updated successfully, but these errors were encountered: