mirror of
https://github.com/ershisan99/flashcards-example-project.git
synced 2025-12-26 12:33:39 +00:00
feat: header component
feat: dropdown component feat: avatar component
This commit is contained in:
@@ -5,20 +5,13 @@ import {
|
||||
DecksResponse,
|
||||
GetDecksArgs,
|
||||
UpdateDeckArgs,
|
||||
} from './decks.types'
|
||||
import { baseApi } from '@/services'
|
||||
baseApi,
|
||||
} from '@/services'
|
||||
|
||||
const decksService = baseApi.injectEndpoints({
|
||||
endpoints: builder => ({
|
||||
createDeck: builder.mutation<DeckResponse, CreateDeckArgs>({
|
||||
invalidatesTags: ['Decks'],
|
||||
onQueryStarted: async (_, { dispatch, getCacheEntry, getState, queryFulfilled }) => {
|
||||
const data = getCacheEntry()
|
||||
const state = getState()
|
||||
|
||||
decksService.util.re
|
||||
await queryFulfilled
|
||||
},
|
||||
query: body => ({
|
||||
body,
|
||||
method: 'POST',
|
||||
|
||||
Reference in New Issue
Block a user