Open Stophface opened 2 years ago
You need to pass the object you would dispatch in your code to the plugin.
E.g.
{ type: DO_SOMETHING, payload: { foo: 'cat', bar: 'dog' } }
In redux, even though payload
is a standard but it is not a default field. The flexibility trade off requires user to supply the field name.
If you have a payload which is not an object just pass {"payload": xxx}
From the code side I dispatch my action like this
When I try to dispatch this action with a payload from the flipper plug in
It tells me
undefined is not an object
and pin points me toaction.payload.foo
. So I assume thepayload
is not passed from the plug in. How do I give it apayload
?