jsonmaur / jumpsuit

MIT License
1.39k stars 74 forks source link

Bug in Hooks documentation? #85

Closed w33ble closed 7 years ago

w33ble commented 7 years ago

I was just reading through the Hooks docs and noticed this:

// You can hook into any actions, even ones from external libraries!
const formLoadedHook = Hook((action, getState) => {
  if (action.type === 'redux-form/INITIALIZE') {
    console.log('A Redux-Form was just initialized with this payload', payload)
  }
})

But on the console.log line, payload is never defined.

Should this be action.payload? Or maybe getState()?

tannerlinsley commented 7 years ago

I believe this is fixed now.