Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Ian Stewart
    @ianmstew
    Hello all. I'm here to field any stateful Marionette architecture questions you may have.
    Gary Kaganas
    @Seebiscuit
    Nice
    Ian Stewart
    @ianmstew
    :)
    Dmytro Rohov
    @rogovdm
    Hello :)
    What's the project current state? :)
    Ian Stewart
    @ianmstew
    Yoo @rogovdm I fully support this still, just got bogged down a bit this month. I'll be back at it in May.
    Any questions/thoughts/suggestions?
    Christian Zimmer
    @Chris136
    I have a navigation tree where only one item has to be selected at a time. The selection is working. How can I deselect all other items when selecting one.
    Dmytro Rohov
    @rogovdm
    Not I'm meditating on this lib and want to full intagrate into my project. Did this with one component and that felt great.

    The concept of domains / services is quite new for me. I'm thinking more in a MVC-way.

    Is there any opec source code that use that implement those concepts with Mn.State?

    @Chris136 did you consider trying Backbone.Select?

    Also you can fire some "select" event in a scope of a tree, and that other times can listen to it and react properly.

    Dmytro Rohov
    @rogovdm
    My suggestion is to go away from terminology of "Domain Controllers". I have no idea what you include in this meaning :) And it seems to be something quite internal for you :) Maybe it's some kind of analogy within https://en.wikipedia.org/wiki/Domain_controller but that does not help to get the idea quicker.
    From my perspectibe: It took me a while to understand that Mn.State allows Views to depend not only on model / collection but also on another entity. And Mn State help you create EntityManager :) Something like that.
    Christian Zimmer
    @Chris136
    @rogovdm yes, I have tried backbone.select before this. But I could not get it to work with tree data. Every sub-collection worked independently.
    Gary Kaganas
    @Seebiscuit
    Hey, @ianmstew . I'm in the market for a model binder. Considering the uni-directional-ness of Mn.State, does it work to keep the model and the view fresh?
    Gary Kaganas
    @Seebiscuit
    Ok, I read up on it a bunch more. So I get the idea of creating a State model. Now, how would I integrate this with a 2-way binding lib, like say, Stickit?
    Ian Stewart
    @ianmstew
    :wave:
    :D
    Ian Stewart
    @ianmstew
    This message was deleted
    This message was deleted
    Ian Stewart
    @ianmstew
    @Seebiscuit Hmm, I'm sure you could bind directly to the State instance, or if you're having trouble doing that to stateInstance.getModel(). Technically that would circumvent the one-way data flow, but the advantage of doing that with a state instance vs a shared backbone model is that your two way binding stays local to the view and can't mess up anything outside of the view.
    Gary Kaganas
    @Seebiscuit
    So my Bb model would listen to the State instance, and "update" (.save()) just like a view. That sounds right. I wonder if that idea shouldn't be the basis of a State fork...?
    Ian Stewart
    @ianmstew
    @Seebiscuit Hmm, I'd have to see an example to be sure--do you mean using this?
    https://github.com/NYTimes/backbone.stickit#stickit
    this.stickit(this.state);
    Gary Kaganas
    @Seebiscuit
    I'm not so sure how Backbone.Stickit works. But that looks like it would update the view with state rather than the view model with the state