Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refetch only trains with version greater than already fetched #176

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

viliket
Copy link
Owner

@viliket viliket commented Jun 20, 2024

Updates useTrainQuery, useRunningTrainsQuery and useTrainsByStationQuery hooks to utilize the cached train data and only refetch train(s) data with version greater than what is already in the local cache.

Updates useTrainQuery, useRunningTrainsQuery and useTrainsByStationQuery hooks to utilize the cached train data and only refetch train(s) data with version greater than what is already in the local cache.
Copy link

sonarcloud bot commented Jun 20, 2024

Copy link

netlify bot commented Jun 20, 2024

Deploy Preview for junaan ready!

Name Link
🔨 Latest commit 7ac166c
🔍 Latest deploy log https://app.netlify.com/sites/junaan/deploys/66743cee4b8ccf000748d9da
😎 Deploy Preview https://deploy-preview-176--junaan.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 site configuration.

Copy link

Deploying live-trains-finland with  Cloudflare Pages  Cloudflare Pages

Latest commit: 7ac166c
Status: ✅  Deploy successful!
Preview URL: https://8d25bf03.live-trains-finland.pages.dev
Branch Preview URL: https://fetch-only-trains-with-versi.live-trains-finland.pages.dev

View logs

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.

None yet

1 participant