Skip to content

Add memoized response resolver for linked resources and pagination - #25

Merged
andrepimpao merged 11 commits into
3.xfrom
PAS-17-add-memoized-response-resolver-for-linked-resources-and-pagination
Aug 7, 2026
Merged

Add memoized response resolver for linked resources and pagination#25
andrepimpao merged 11 commits into
3.xfrom
PAS-17-add-memoized-response-resolver-for-linked-resources-and-pagination

Conversation

@andrepimpao

Copy link
Copy Markdown
Contributor

Summary

  • Add an explicit response resolver for linked entities, collections, and pagination.
  • Reuse the originating SDK runtime for authentication, plugins, cache, hooks, decoding, errors, and config.
  • Memoize resolved responses within each response graph to avoid duplicate HTTP requests.

Changes

  • Add ResolverInterface with get(), entity(), collection(), and envelope().
  • Expose the response-graph resolver through hydration Context.
  • Preserve query parameters from API-provided links while appending missing API defaults.
  • Build memoization keys from the HTTP method and transport-resolved URL.
  • Keep memoization isolated between independent top-level SDK requests.

@andrepimpao
andrepimpao merged commit 7320872 into 3.x Aug 7, 2026
5 checks passed
@andrepimpao
andrepimpao deleted the PAS-17-add-memoized-response-resolver-for-linked-resources-and-pagination branch August 7, 2026 17:17
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