Skip to content

Releases: AndreiTelteu/solidjs-storex

v1.0.6

22 Aug 19:00
Compare
Choose a tag to compare
  • Store's default persistent setting is now disabled
  • Separate the useState helper in a separate file

v1.0.5

22 Aug 11:21
Compare
Choose a tag to compare

Migrated from rollup to tsup-preset-solid

v1.0.3

28 Jan 18:21
Compare
Choose a tag to compare
  • Before this version, each call on the result of defineStore did create a new independent createStore, 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

28 Sep 22:41
Compare
Choose a tag to compare

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

28 Sep 22:39
Compare
Choose a tag to compare

Update demo link

v1.0.0

28 Sep 22:38
Compare
Choose a tag to compare

Initial release