tonyhb / redux-ui

Easy UI state management for react redux
636 stars 58 forks source link

enhancement: allow key to be a function #67

Closed arolson101 closed 7 years ago

arolson101 commented 7 years ago

I have a generic list component and I'd like to use redux-ui to store it's state (selection, scroll state). If the 'key' prop was a function then I could keep the state for different instantiations of the control separate.

To be clear, this would be a function accepting props and state, just like the state initializers