unistore icon indicating copy to clipboard operation
unistore copied to clipboard

🌶 350b / 650b state container with component actions for Preact & React

Results 48 unistore issues
Sort by recently updated
recently updated
newest added

Wrapper(HOC) subscribes to store in constructor instead of componentDidMount method. codesandbox trial: https://codesandbox.io/s/stupefied-benz-r2jr2

Sorry Work in Progress, want to get this here early to get ideas / help ... My initial changes to bring more complex typings like react-redux. This is my current...

It doesn't seem I can easily edit or fork the [referenced benchmark](https://esbench.com/bench/5a295e6299634800a0349500), but in the latest Chrome (78), this appears to perform slightly better than the current implementation: ![image](https://user-images.githubusercontent.com/1779930/68361960-a09e4000-00f3-11ea-886f-215df2eedfdb.png) Benchmark...

To fix #171 and not use any UNSAFE_ methods, i converted the react integration to use hooks. I haven't updated the tests yet, want to hear whether this is an...

First off, thanks, your stuff kicks some serious ass! 👍🏻 Now to the issue - I've been using Preact lately to build all sorts of widgets, they're not parts of...

needs-reivew

Rather than merging store with previous store I would like to have them separately. E.g. ```jsx const AuthStore = ({ children }) => {children} const PageStore = ({ children })...

Build: ```console $ npm run build > build > wmr build --prerender Error when using sourcemap for reporting an error: Can't resolve original location of error. 'Provider' is not exported...

Copying and pasting the example throws an error in my setup due to the missing comma... :)

I see that connect can be used like this: `connect( [ 'var1', 'var2' ], actions )` Which works well... however I want to init a component, and pass the state...

I am facing an error while testing my react app from JEST. It shows an error as "TypeError: Cannot read property 'action' of undefined". Can I know how do I...