You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am looking at using redux-beacon to integrate analytics from the point of my redux store. To do this I need to add meta to some actions. So I basically have typical createAction that looks like this, let's say:
That way, when I dispatch the action it doesn't need the meta to be there, just like before. My issue is, though, that when I run this I get:
Error: Argument 1 is invalid, it should be an action-creator instance from "typesafe-actions" or action type of type: string | symbol
Any suggestions?
The text was updated successfully, but these errors were encountered:
dimitropoulos
changed the title
Can I use createAction with a static meta in a way that createReducer.handleAction allows?
Can I use createAction with a static meta in a way that createReducer.handleAction allows?
Jun 25, 2020
I am looking at using
redux-beacon
to integrate analytics from the point of my redux store. To do this I need to addmeta
to some actions. So I basically have typicalcreateAction
that looks like this, let's say:I'm using this with
createReducer
likeAnd in my code I just have
My problem is I want to, at the level of the creation of the action, create meta for the analytics.
I was able to mock this out as follows:
That way, when I dispatch the action it doesn't need the meta to be there, just like before. My issue is, though, that when I run this I get:
Any suggestions?
The text was updated successfully, but these errors were encountered: