Skip to content

fix: update return types of useFragment and useSuspenseFragment to include null - #291

Merged
morrys merged 1 commit into
relay-tools:masterfrom
eMerzh:plural_fix
May 11, 2026
Merged

morrys merged 1 commit into
relay-tools:masterfrom
eMerzh:plural_fix

Conversation

@eMerzh

@eMerzh eMerzh commented May 11, 2026

Copy link
Copy Markdown
Contributor

I hit this bug where a plural fragment was undefined, and the useFragment results as well, but the TS says it can only be an array, so there was no check after that.

i think it looks closer to what react-relay does

@morrys if you can check this out :)

Thanks

@morrys
morrys merged commit 052d9a5 into relay-tools:master May 11, 2026
1 check passed
@morrys

morrys commented May 11, 2026

Copy link
Copy Markdown
Member

@eMerzh thanks for the contribution :) I’ll release the fix as soon as I can.

@eMerzh

eMerzh commented May 11, 2026

Copy link
Copy Markdown
Contributor Author

Ok thanks a lot for your quick 👀 ...

@morrys

morrys commented May 13, 2026

Copy link
Copy Markdown
Member

released v10.0.1 https://github.com/relay-tools/relay-hooks/releases/tag/v10.0.1

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