unistore
unistore copied to clipboard
🌶 350b / 650b state container with component actions for Preact & React
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 }...
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...
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...
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...
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...
This might be out of the scope of the project but is it possible to do server side rendering/ rehydration with unistore?