Skip to content

use optional fields for refetch variables#588

Merged
zth merged 7 commits into
zth:masterfrom
tsnobip:revamp-refetch-variables
Dec 10, 2025
Merged

use optional fields for refetch variables#588
zth merged 7 commits into
zth:masterfrom
tsnobip:revamp-refetch-variables

Conversation

@tsnobip

@tsnobip tsnobip commented Nov 27, 2025

Copy link
Copy Markdown
Collaborator

Before this PR, untouched optional variables were set as null instead of not being defined. This is now fixed.

To be used with zth/relay#32

@zth

zth commented Dec 3, 2025

Copy link
Copy Markdown
Owner

This is great! But, if we're to merge this, I would really really like the test suite for refetch variables to be extended thoroughly to handle all relevant cases for how refetch variables is supposed to behave.

Here's the relevant docs section: https://relay.dev/docs/next/api-reference/use-refetchable-fragment/#return-value
Probably easy work for an LLM to extend the test suite for this to provide 100% expected behavior coverage (the correct variables change depending on what you send, and the expected thing is dispatched to the server, etc).

@tsnobip
tsnobip force-pushed the revamp-refetch-variables branch 3 times, most recently from a91c6da to 1b35023 Compare December 7, 2025 15:52
@tsnobip
tsnobip force-pushed the revamp-refetch-variables branch from 1b35023 to 49af8ab Compare December 8, 2025 07:57
@zth
zth merged commit e449782 into zth:master Dec 10, 2025
6 checks passed
@tsnobip
tsnobip deleted the revamp-refetch-variables branch December 11, 2025 07: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