Skip to content

How to utilize Suspense preview with useTransition hook? #258

Open

Description

@TroySchmidt

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

Activity

  1. ghengeveld commented on Feb 28, 2020

    @ghengeveld
    Member

    Can you explain what you're trying to achieve?

  2. TroySchmidt commented on Feb 28, 2020

    @TroySchmidt
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions