Closed Daviichii89 closed 11 months ago
For this kind of errors, the error stream is not enough, usually you add the code that trigger this error
I see the problem. I thought the problem was in the mangasCollection variable and its type, but the problem was in the initialState interface of the collectionReducer or in the initial state value. In this case I have opted to change the typing of initialState.
From:
To:
I don't understand why throws this warning when I think that the mangasCollection variable is typed correctly and the store also.
Code:![image](https://github.com/Daviichii89/manga-collection/assets/21307408/94c00e10-8405-4b96-8e76-0888529bfab5)
Error:![image](https://github.com/Daviichii89/manga-collection/assets/21307408/ccefef61-9c40-4ab0-89f6-977d7ff39cbc)