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()?
I was just reading through the Hooks docs and noticed this:
But on the
console.log
line,payload
is never defined.Should this be
action.payload
? Or maybegetState()
?