Skip to content

v1.0.0-rc.2

Compare
Choose a tag to compare
@yyx990803 yyx990803 released this 05 Jul 01:45
· 859 commits to main since this release

Breaking Changes from rc.1

  • The store instance no longer exposes the event emit interface (on, off, emit, off).

  • Instead of store.on('mutation', cb), a new method store.subscribe is introduced. Typical usage inside a plugin would be:

    const myPlugin = store => {
      store.subscribe((mutation, state) => {
        // do something...
      })
    }

    See example internal plugins.