Skip to content

Commit 78e68db

Browse files
authored
Merge pull request #1513 from hey-api/refactor/plugin-tanstack-query
refactor: split tanstack query plugin into modules
2 parents cc505ee + a6523a4 commit 78e68db

File tree

41 files changed

+1406
-1269
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1406
-1269
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { getConfig } from '../../../utils/config';
2+
3+
// TODO: this function could be moved so other plugins can reuse it
4+
export const getClientBaseUrlKey = () => {
5+
const config = getConfig();
6+
return config.client.name === '@hey-api/client-axios' ? 'baseURL' : 'baseUrl';
7+
};

0 commit comments

Comments
 (0)