-
Notifications
You must be signed in to change notification settings - Fork 31
do not suspend in useResult for components #747
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
base: main
Are you sure you want to change the base?
do not suspend in useResult for components #747
Conversation
32f9a9b to
674f20d
Compare
176d077 to
74d65ce
Compare
| ], | ||
| entrypoint: { | ||
| kind: "EntrypointLoader", | ||
| typeAndField: "BlogItem__BlogItemMoreDetail", |
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 guess here we want the abstract type and the concrete:
- abstract to cache
.loader() - concrete for the fragment
| fragmentReference.readerWithRefetchQueries, | ||
| ); | ||
|
|
||
| switch (readerWithRefetchQueries.readerArtifact.kind) { |
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 guess I've missed an important fact - the kind of resolver needs to be known upfront
c542fbf to
d171aed
Compare
| const isographArtifactPromiseWrapper = getOrLoadIsographArtifact( | ||
| environment, | ||
| field.entrypoint.typeAndField, | ||
| `${root.__typename}/${field.entrypoint.fieldName}`, |
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.
TODO
7be4765 to
5b1706d
Compare
5b1706d to
61b97df
Compare
61b97df to
c213e9e
Compare
Closes #746
This is part 2 of 2 in a stack made with GitButler: