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

Missing loading variable check in documentation #1311

Closed
V-iktor opened this issue Dec 10, 2022 · 1 comment
Closed

Missing loading variable check in documentation #1311

V-iktor opened this issue Dec 10, 2022 · 1 comment

Comments

@V-iktor
Copy link

V-iktor commented Dec 10, 2022

Is there a way to check if useFieldValue is fetching data to show a progress animation while loading data from Contentful inside React?

https://www.npmjs.com/package/@contentful/react-apps-toolkit

@andipaetzold
Copy link
Contributor

useFieldValue is never in a loading state. Therefore, we do not export one.

The values are fetched while the app is initialized (init or via SDKProvider) and always kept up-to-date after that. There is never a state where the app is waiting for a network request or similar to get access to a value.

@V-iktor V-iktor closed this as completed Dec 20, 2022
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

No branches or pull requests

2 participants