MVVM
Hello,
I'm creating a little app to study the use of various patterns.
I was currently playing with MVVM.
As far as I got, if we use the presentation model where the
presenter is statless, I could use the mapSingleton function to use
the same instance of the presenter among all the views since it's
just pure logic (unless I got it wrong).
However MVVM presenter is not stateless so each view should have is
own presenter. How is this usually managed in order to not loose
the flexibility to have the presenter injected where needed? Do I
have to rethink my current implementation to face this problem?
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
| ? | Show this help |
|---|---|
| ESC | Blurs the current field |
Comment Form
| r | Focus the comment reply box |
|---|---|
| ^ + ↩ | Submit the comment |
You can use Command ⌘ instead of Control ^ on Mac
1 Posted by sebas on 27 Apr, 2011 10:05 AM
first of all I'm sorry I posted this question on the Problems board, while it was more a discussion. Anyway I think I figured it out on my own, the real fundamental problem is that too many examples around use to easily the mapSingleton function while it must be used very wisely instead.
Stray closed this discussion on 29 Apr, 2011 04:38 PM.