How to use apollo useQuery in redux toolkit

I want to save {loading, data, error, refetch} object returned from useQuery generally in redux. so other components can call refetch and use data. is there any way to do that?

I cant call useQuery in redux slice because it only can be called in react components.

I cant call useQuery in a component and dispatch its result to redux because refetch function is not serializable.