Skip to content

Commit

Permalink
refactor: split tanstack query plugin into modules
Browse files Browse the repository at this point in the history
  • Loading branch information
mrlubos committed Dec 26, 2024
1 parent cc505ee commit a6523a4
Show file tree
Hide file tree
Showing 41 changed files with 1,406 additions and 1,269 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { getConfig } from '../../../utils/config';

// TODO: this function could be moved so other plugins can reuse it
export const getClientBaseUrlKey = () => {
const config = getConfig();
return config.client.name === '@hey-api/client-axios' ? 'baseURL' : 'baseUrl';
};

Check warning on line 7 in packages/openapi-ts/src/plugins/@tanstack/query-core/client.ts

View check run for this annotation

Codecov / codecov/patch

packages/openapi-ts/src/plugins/@tanstack/query-core/client.ts#L5-L7

Added lines #L5 - L7 were not covered by tests
Loading

0 comments on commit a6523a4

Please sign in to comment.