Skip to content

Comments

65 Refactored API Layer to TanStack Query Naming Conventions#75

Merged
mrbalov merged 17 commits intomainfrom
feat/65-tanstack-query-2
Feb 24, 2026
Merged

65 Refactored API Layer to TanStack Query Naming Conventions#75
mrbalov merged 17 commits intomainfrom
feat/65-tanstack-query-2

Conversation

@mrbalov
Copy link
Collaborator

@mrbalov mrbalov commented Feb 24, 2026

Changelog

[5.4.0] - 2026-02-24

65 Refactored API Layer to TanStack Query Naming Conventions

Changed

  • Renamed all API hooks from useFetch* to useQuery* pattern for consistency with TanStack Query conventions
  • Renamed all query functions from fetch* to query* pattern throughout the API layer
  • Reorganized API module structure for better separation of concerns:
    • Split image generation functionality into stravaActivityImage (for fetching) and separate generation module
    • Added dedicated stravaActivity module for single activity queries
  • Updated all components to use the new hook naming convention (useQueryAuthStatus, useQueryStravaActivities, etc.)

Added

  • New stravaActivity API module with queryStravaActivity and useQueryStravaActivity exports for fetching individual activities

Removed

  • Legacy useFetch* hooks and fetch* functions replaced by useQuery* and query* equivalents
  • Consolidated generateStravaActivityImage module (functionality split into specialized modules)

@netlify
Copy link

netlify bot commented Feb 24, 2026

Deploy Preview for torqui ready!

Name Link
🔨 Latest commit 49fc5e4
🔍 Latest deploy log https://app.netlify.com/projects/torqui/deploys/699d707f38083100080ba2cc
😎 Deploy Preview https://deploy-preview-75--torqui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Feb 24, 2026

Deploy Preview for torqapi canceled.

Name Link
🔨 Latest commit 49fc5e4
🔍 Latest deploy log https://app.netlify.com/projects/torqapi/deploys/699d707fd965900008526648

@mrbalov mrbalov enabled auto-merge (squash) February 24, 2026 09:29
@mrbalov mrbalov merged commit e5c61e8 into main Feb 24, 2026
13 checks passed
@mrbalov mrbalov deleted the feat/65-tanstack-query-2 branch February 24, 2026 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant