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
it will be more type-safe because you can't pass generic types to static methods in typescript.
you won't have to pass this to the side-effect
Alternatively - you can pass the reducer function to the constructor, to make sure that the reducer doesn't have access to the class instance. and this is also more type-safe
The text was updated successfully, but these errors were encountered:
Alternatively - you can pass the reducer function to the constructor, to make sure that the reducer doesn't have access to the class instance. and this is also more type-safe
I'm not quite sure I understand. When you use React, you don't control what is passed to the constructor - React is calling it for you.
The ReComponent class is a super class (like react's Component), so the component that extends ReComponent can pass an additional argument to the super constructor
this
to the side-effectAlternatively - you can pass the reducer function to the constructor, to make sure that the reducer doesn't have access to the class instance. and this is also more type-safe
The text was updated successfully, but these errors were encountered: