Last active
March 27, 2024 13:58
-
-
Save pranitkhadilkar7/9b8800f0feca21edf812419be5b57653 to your computer and use it in GitHub Desktop.
Code snippets for RTK Query api service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query/react' | |
export const applicationApi = createApi({ | |
reducerPath: 'applicationApi', | |
baseQuery: fetchBaseQuery({ baseUrl: 'http://localhost:3004/' }), | |
endpoints: () => ({}), | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment