fluxxor icon indicating copy to clipboard operation
fluxxor copied to clipboard

Store creation is too inflexible

Open BinaryMuse opened this issue 10 years ago • 1 comments

There's no good way to create reusable bits of stores, for example, default methods, action handlers, or initialize methods. See #31 for a good example.

Mixins could certainly do the trick (merge action hashes, call multiple initialize methods, mix in other methods and properties), but I'm not sure if it's the best solution for the problem.

BinaryMuse avatar Jun 12 '14 15:06 BinaryMuse

Always better to make the api more flexible than adding features for specific problems :-)

If #31 can be implemented as a mixin or other kind of extension, that's ideal.

brigand avatar Jun 13 '14 03:06 brigand