Releases: AndreiTelteu/solidjs-storex
Releases · AndreiTelteu/solidjs-storex
v1.0.6
v1.0.5
Migrated from rollup to tsup-preset-solid
v1.0.3
- Before this version, each call on the result of
defineStore
did create a new independentcreateStore
, with results in different store values on every component.
After this update, it now correctly returns the same initiated store. - Update dependencies
v1.0.2
Added watch api to create effects when a state changes. Checkout example/src/stores/userStore.ts
.
export default defineStore({
state: {
user: null,
},
watch: {
user: (value, state, set) => {
if (value) set('prevUser', value?.username);
},
},
});
v1.0.1
Update demo link
v1.0.0
Initial release