store icon indicating copy to clipboard operation
store copied to clipboard

add a helper function like updateState

Open tsawan opened this issue 8 years ago • 3 comments

I really liked the simplicity of updating state in pre 2.0 where I only needed to set the property that's updated. Now in 2.0, I have to use setState(...state, ...) for each update.

How about a helper function like updateState that just takes the updated properties?

tsawan avatar Mar 18 '18 07:03 tsawan

@tsawan I could potentially see us adding a "patchState" or something like that. good idea.

deebloo avatar Mar 18 '18 13:03 deebloo

Ooooo I like this .... Shouldn't be too hard... Lets try to get it in 2.0 @deebloo

amcdnl avatar Mar 18 '18 16:03 amcdnl

Done in rc2.

amcdnl avatar Mar 18 '18 17:03 amcdnl