martyjs / marty

A Javascript library for state management in React applications
http://martyjs.org
MIT License
1.09k stars 76 forks source link

Static store functions? #148

Closed adbl closed 9 years ago

adbl commented 9 years ago

Any plans to support static functions that can be called on the store?

The use case I'm dealing with currently is logic for converting backend data to a more client friendly format directly in the StateSource before dispatching. I would like to implement this code within the responsible Store but I don't want access to this.

jhollingworth commented 9 years ago

Hey, not sure what you mean. Stores are already statics so everything on it should be accessible globally.

From what you've said, creating some utils might be more appropriate?