Skip to content

Conversation

@PatrykWalach
Copy link
Member

@PatrykWalach PatrykWalach commented Nov 7, 2025

Closes #746


This is part 2 of 2 in a stack made with GitButler:

@PatrykWalach PatrykWalach force-pushed the not-suspend-in-useResult-for-components branch 2 times, most recently from 32f9a9b to 674f20d Compare November 7, 2025 13:23
@PatrykWalach PatrykWalach force-pushed the not-suspend-in-useResult-for-components branch 4 times, most recently from 176d077 to 74d65ce Compare November 7, 2025 13:42
],
entrypoint: {
kind: "EntrypointLoader",
typeAndField: "BlogItem__BlogItemMoreDetail",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess here we want the abstract type and the concrete:

  • abstract to cache .loader()
  • concrete for the fragment

fragmentReference.readerWithRefetchQueries,
);

switch (readerWithRefetchQueries.readerArtifact.kind) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess I've missed an important fact - the kind of resolver needs to be known upfront

@PatrykWalach PatrykWalach force-pushed the not-suspend-in-useResult-for-components branch from c542fbf to d171aed Compare November 7, 2025 14:19
@PatrykWalach PatrykWalach marked this pull request as draft November 7, 2025 14:24
const isographArtifactPromiseWrapper = getOrLoadIsographArtifact(
environment,
field.entrypoint.typeAndField,
`${root.__typename}/${field.entrypoint.fieldName}`,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO

@PatrykWalach PatrykWalach force-pushed the not-suspend-in-useResult-for-components branch from 7be4765 to 5b1706d Compare November 7, 2025 14:52
@PatrykWalach PatrykWalach force-pushed the not-suspend-in-useResult-for-components branch from 5b1706d to 61b97df Compare November 7, 2025 14:53
@PatrykWalach PatrykWalach force-pushed the not-suspend-in-useResult-for-components branch from 61b97df to c213e9e Compare November 7, 2025 15:36
@PatrykWalach PatrykWalach marked this pull request as ready for review November 13, 2025 18:14
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.

useResult suspends when returnig components

1 participant