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

How to utilize Suspense preview with useTransition hook? #258

Open
TroySchmidt opened this issue Feb 27, 2020 · 2 comments
Open

How to utilize Suspense preview with useTransition hook? #258

TroySchmidt opened this issue Feb 27, 2020 · 2 comments

Comments

@TroySchmidt
Copy link

Not sure how you can use the useTransition hook to customize the delay milliseconds while using useAsync hook with the suspense preview.

@ghengeveld
Copy link
Member

Can you explain what you're trying to achieve?

@TroySchmidt
Copy link
Author

The only way to customize the timeout or the busy milliseconds settings for React.Suspense is by using the useTransition hook. Was curious if anyone had the pattern to use useAsync with useTransition to achieve this functionality. The default busy delay is only 100ms for React. Most people I imagine would want to customize this to suit their timing needs.
useTransition API

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