Skip to content

Fix hasManyThrough target ordering#11453

Open
mjackson wants to merge 1 commit into
mainfrom
mjackson/fix-data-table-worker3
Open

Fix hasManyThrough target ordering#11453
mjackson wants to merge 1 commit into
mainfrom
mjackson/fix-data-table-worker3

Conversation

@mjackson

Copy link
Copy Markdown
Member

Fixes hasManyThrough eager loading so ordered target rows stay in target query order before per-parent pagination is applied.

  • Preserves target orderBy when a many-through relation spans multiple through rows.
  • Applies limit/offset after each parent's target rows are assembled in target order.
  • Adds a regression covering orderBy('title').limit(1) across two through records.

@github-actions

Copy link
Copy Markdown
Contributor

Preview Build Available

A preview build has been created for this PR. You can install it using:

pnpm install "remix-run/remix#preview/pr-11453&path:packages/remix"

This preview build will be updated automatically as you push new commits.

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