Browse Source

state: call hook 'state-update' with final state & hash

master
parent
commit
ac57d65acf
  1. 2
      src/state.js

2
src/state.js

@ -144,6 +144,8 @@ function update (state, push) {
var newHash = '#' + stringify(state)
call_hooks('state-update', state, newHash)
if (push) {
history.pushState(null, null, newHash)
call_hooks('statePush', state, newHash)

Loading…
Cancel
Save