I don\'t want use global store according to our requirement, but when move the store to a function, the component doesn\'t update any more.
this doesn\'t work: