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
{{ message }}
This repository has been archived by the owner on Nov 23, 2020. It is now read-only.
Hello Sir thank you for this awesome libraries it adds a lot to the basic apollo-link-state library. I did your book example with React (jsx) it worked and I loved the way this library worked, but when I started working in typescript and React (tsx) I am getting all type Errors.
1. The connect HOC gives type Errors ->
interface IStaffFilterProps {
updateFirst: (first: string) => void;
}
const mapDispatchToProps = (dispatch: Dispatch) => ({
updateFirst: (first: string) => dispatch(new UpdateFirst(first)),
});
class StaffScreenFilters extends Component<IStaffFilterProps, {}> { }
connect(mapDispatchToProps)(StaffScreenFilters);
In your example you have Actions as Mutations Properties (type and mutation) as static class Properties t gives errors here -> dispatch(new UpdateFirst(first)) i . So I had to remove static : -
Hello Sir thank you for this awesome libraries it adds a lot to the basic apollo-link-state library. I did your book example with React (jsx) it worked and I loved the way this library worked, but when I started working in typescript and React (tsx) I am getting all type Errors.
Please Sir a simple working example in typescript would help me a lot Thank you for your time
The text was updated successfully, but these errors were encountered: