herculesx

Simple, predictable, developer friendly state management for alipay mini-program

Usage no npm install needed!

<script type="module">
  import herculesx from 'https://cdn.skypack.dev/herculesx';
</script>

README

herculesX

Simple, predictable, developer friendly state management for alipay mini-program

setData (1).png

Feature

  • Component&Page&global wrapper
  • dispatch, commit mutation actions getters ...vuex like apis
  • strengthen mutation, getters. add immutable helper to getters, and improve mutation usecase , add some common innerMutation
  • plugins support, add logger as inner plugin
  • cross page communication: message channel, auto router dispatcher, getState by name space
  • cross components communication: ref support
  • connect, connect Page to Component
  • global store support, management all store instance and component instance and global state, global message bus ,event bus
  • event bus support
  • auto router data flow, take over all lifecycle
  • use immer and immuble helper to promise immutable