Skip to content

Commit

Permalink
Merge pull request #1513 from hey-api/refactor/plugin-tanstack-query
Browse files Browse the repository at this point in the history
refactor: split tanstack query plugin into modules
  • Loading branch information
mrlubos authored Dec 26, 2024
2 parents cc505ee + a6523a4 commit 78e68db
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';
};
Loading

0 comments on commit 78e68db

Please sign in to comment.