Skip to content

Conversation

rozita-hasani
Copy link
Collaborator

#94 integrate tanstack query

Description

Integrate tanstack query

Changes

  • Replace all service calls with TanStack Query store hooks

Checklist

  • Code adheres to the project’s back-end guidelines.
  • Unit tests cover new functionality.
  • Integration tests are added or updated.
  • Exception handling is implemented consistently.
  • Logging is added for critical operations.
  • Database migrations (if applicable) are included and tested.
  • API documentation is updated if necessary.
  • Changes are reviewed for potential performance impacts.
  • Security vulnerabilities are assessed and mitigated.
  • Dependencies are updated or verified as compatible.
  • Code is reviewed for readability and maintainability.
  • Environment configurations (if any) are documented.
  • Endpoints are tested for expected behavior.

@rozita-hasani
Copy link
Collaborator Author

Closing this PR: I'm removing TanStack Query because it shows old data when users go between pages. Our app needs to always show the newest data right away. TanStack Query makes this harder, not easier. The old way with useState and useEffect works better for what we need. It's simpler and shows fresh data when users need it.

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