Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions apps/react-kit-demo/src/services/BookService.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { FetchClient } from '@react-kit/*';
import { BASE_API_URL, BOOK_API_URL } from '../constants/ApiConstants';
import { Book } from '../types/Book';

Expand All @@ -16,6 +15,6 @@ export class BookService {
* @since 1.0.0
*/
static async getAllBooks(): Promise<Book[]> {
return await FetchClient<Book[]>(`${BASE_API_URL + BOOK_API_URL}/books`);
return await fetch(`${BASE_API_URL + BOOK_API_URL}/books`).then((res) => res.json());
}
}
5 changes: 0 additions & 5 deletions react-kit/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@ export { ReactIf } from './lib/components/ReactIf';
export { TablePaginationActions } from './lib/components/table/TablePaginationActions';
export { a11yProps, TabPanel } from './lib/components/tabs/TabPanel';

// Export fetch client
export { FetchClient as fetchClient, FetchClient, FetchClient as httpClient } from './lib/config/fetch/FetchClient';
export * from './lib/config/fetch/FetchClientTypes';
export { FetchInterceptor } from './lib/config/fetch/FetchInterceptor';

// Export all utilities
export * from './lib/utils/BooleanUtils';
export * from './lib/utils/CssUtils';
Expand Down