Skip to content
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

API for reading fragment reference that returns union and doesn't suspend #272

Open
rbalicki2 opened this issue Nov 14, 2024 · 0 comments
Open
Labels
good first issue Good for newcomers

Comments

@rbalicki2
Copy link
Collaborator

You should be able to call getStateOfFragmentReference(fragmentRef) and that should return { kind: 'Pending' } | { kind: 'Data', dat: T }

It should be pending if it would suspend. This may not equal that a network request is in flight, it might suspend due to other data changing.

@rbalicki2 rbalicki2 added the good first issue Good for newcomers label Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant