Replies: 1 comment
-
You need to import |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
export const productsApi = createApi({
reducerPath: "productsApi",
baseQuery: fetchBaseQuery({ baseUrl: env.VITE_BACKEND_URL }),
endpoints: (builder) => ({
getProducts: builder.query<Product[], void>({
query: () => "products",
}),
}),
});
export const { useGetProductsQuery } = productsApi; //Error: Property 'useGetProductsQuery' does not exist
Beta Was this translation helpful? Give feedback.
All reactions