Skip to content

Conversation

@ekin-odabas
Copy link
Contributor

@ekin-odabas ekin-odabas commented Jan 16, 2026

Context

Current fetching solution does not have certain features such as deduplication, retry or caching.

Changes proposed in this pull request

This PR adds a HyperFetch based new query store to handle fetching that can support the missing features.

  • A new createQueryStore has been added as a wrapper around Hyperfetch as Hyperfetch does not have a reactive option for Svelte
  • Previous createFetchStore not removed until refactoring to createQueryStore is complete
  • Hyperfetch's deduplication removes the need to use debouncing in many of the places where debouncing was used to avoid duplicate requests and createQueryStore has it enabled by default
  • Debouncing will be handled in the logic of the consumer of createQueryStore rather than by createQueryStore itself
  • Url and method are now passed on query creation rather than fetch call
  • Payload for methods like POST and dynamic url params that change at runtime are passed to the fetch call directly

Guidance to review

Regression testing of affected screens.

Link to Trello ticket

Things to check

  • I have added any new ENV vars in all deployed environments and updated the .env.test files in the repo

@ekin-odabas ekin-odabas marked this pull request as ready for review January 19, 2026 13:48
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.

2 participants