-
Notifications
You must be signed in to change notification settings - Fork 2.7k
add dataState
to useFragment
, DataValue
type to useSuspenseFragment
#12757
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🦋 Changeset detectedLatest commit: cbc7e3c The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
commit: |
// valid return value | ||
data: diff.result === null ? {} : diff.result, | ||
}), | ||
} as Cache.DiffResult<TData> // TODO: Remove assertion |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I moved this assertion one level in - although it needs an any
there I believe it's more restrictive that way.
size-limit report 📦
|
@@ -140,10 +140,14 @@ describe("useFragment", () => { | |||
} | |||
|
|||
await waitFor(() => { | |||
expect(getItemTexts()).toEqual(["Item #1", "Item #2", "Item #5"]); | |||
expect(getItemTexts()).toStrictEqualTyped([ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While I was at it, I replaced all toEqual
in the file with toStrictEqualTyped
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
Co-authored-by: Jerel Miller <[email protected]>
Co-authored-by: Jerel Miller <[email protected]>
❌ Docs preview failedThe preview failed to build. Build ID: 12618a0e434c7eeb7ebea5db ErrorsGeneral: other side closed |
I noticed we had missed these.