rtk-incubator / rtk-query

Data fetching and caching addon for Redux Toolkit
https://redux-toolkit.js.org/rtk-query/overview
MIT License
626 stars 31 forks source link

responseHandler should always be serializable (no function) #154

Closed gfortaine closed 3 years ago

gfortaine commented 3 years ago

It seems that Redux Toolkit complains when responseHandler is a function (because it is not serializable). Example repository :

https://github.com/gfortaine/rtk-query-nextjs-example/tree/responseHandler