Automatic refetching without react hooks #3199
donald-richardson-dxd
started this conversation in
General
Replies: 1 comment 3 replies
-
@donald-richardson-dxd : that should kick off the refetch. Do you have the middleware added to the store? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've set up my api slice via code splitting. Setting endpoints via injectEndpoints with the appropriate providesTags and invalidatesTags. I enhanceEndpoints to set addTagTypes as I add new types. So, I've set up automatic refetching.
I'm running a mutation without react hooks, i.e. with
initiate
. My queries are not being refetched. Is this the expected behavior?If not then what might be going wrong?
If it is then how do I take advantage of automatic refreshing without using react hooks?
Beta Was this translation helpful? Give feedback.
All reactions