open action creator props cannot have a property named type #3589
-
Beta Was this translation helpful? Give feedback.
Answered by
timdeschryver
Sep 26, 2022
Replies: 1 comment 1 reply
-
Hi @tirelyl this is indeed something that needs to work this way. An action is required to have a To solve the problem, you'll have to rename the
For more info see https://ngrx.io/guide/eslint-plugin/rules/prefer-inline-action-props |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
tirelyl
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @tirelyl this is indeed something that needs to work this way. An action is required to have a
type
, based on this property the reducer(s) and effect(s) know what to do with it.Because it's the core of NgRx (the Redux pattern), you can't change its name.
To solve the problem, you'll have to rename the
type
property on your end, or wrap it in an object.For example
For more info see https://ngrx.io/guide/eslint-plugin/rules/prefer-inline-action-props