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

This might be a basic Typescript question but I'm not sure. I have a container component that is declared like this: ``` class Container extends Component { // something }...

question
types

It seems that connecting a component will mean that it loses its original name. Down below is a test case where I was able to reproduce it. ``` it('should not...

I am very new to this library. I am trying to understand how can I combine all the actions and pass arguments like store, state and payload of a rest...

```javascript import "./style"; import { Component, render } from "preact"; import { Provider, createStore, connect } from "unistore"; let store = createStore({ count: 0 }); // If actions is a...

What is the best practice for functions that don't alter state, but just return a subset of state? Eg. show todos that start with 'a'? Or if I have a...

question

I really like the possibility of running store in web worker. It's simple and slick. Is there a plan to add unistore integration with angular? Can definitely benefit from running...

enhancement
help wanted

I would be interested in seeing if support for vue connect functionality might make sense. It may be more difficult to implement due to vue's reactivity model, but having a...

help wanted
good first issue

In the example store.setState was called with what could be a stale state. In order to use the current state, one must call store.getState. Similar to how in React if...

enhancement
help wanted

This might be out of the scope of the project but is it possible to do server side rendering/ rehydration with unistore?