Skip to content

Commit

Permalink
fix: remove HYDRATE use
Browse files Browse the repository at this point in the history
  • Loading branch information
bs32g1038 committed Mar 27, 2023
1 parent 46b9d1b commit aa416fd
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions client/web/api/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { BaseQueryFn, createApi } from '@reduxjs/toolkit/query/react';
import { HYDRATE } from 'next-redux-wrapper';
import axios from '@blog/client/web/utils/axios';
import { AxiosRequestConfig, AxiosError } from 'axios';

Expand Down Expand Up @@ -117,11 +116,6 @@ interface IExploreReponse {
export const appApi = createApi({
reducerPath: 'appApi',
baseQuery: axiosBaseQuery(),
extractRehydrationInfo(action, { reducerPath }) {
if (action.type === HYDRATE) {
return action.payload[reducerPath];
}
},
endpoints: (builder) => ({
fetchConfig: builder.query<Iconfig, void>({
query: () => ({ url: `/api/configs`, method: 'get' }),
Expand Down

0 comments on commit aa416fd

Please sign in to comment.