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

Gatsby hangs on "Building static HTML for pages" when using Recoil with Suspend #38574

Open
2 tasks done
Mrtenz opened this issue Sep 25, 2023 · 0 comments
Open
2 tasks done
Labels
status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer type: bug An issue or pull request relating to a bug in Gatsby

Comments

@Mrtenz
Copy link
Contributor

Mrtenz commented Sep 25, 2023

Preliminary Checks

Description

When using an asynchronous selector with Recoil wrapped in a <Suspend>, which will cause the component to suspend until the value is available, Gatsby fails to build. There is no error, it just gets stuck on "Building static HTML for pages" indefinitely.

This does not happen during gatsby develop. The page loads as expected.

Reproduction Link

https://github.com/Mrtenz/gatsby-recoil-suspense

Steps to Reproduce

  1. Cause a component to Suspend, e.g., using Recoil asynchronous selectors.
  2. Run gatsby build.

Expected Result

The build completes.

Actual Result

The build gets stuck.

Environment

System:
    OS: macOS 13.5.2
    CPU: (12) arm64 Apple M2 Max
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.16.0 - /private/var/folders/8w/2tkyvh9n30n0jqqzvxmkzhs80000gn/T/xfs-b6204c5e/node
    Yarn: 3.6.3 - /private/var/folders/8w/2tkyvh9n30n0jqqzvxmkzhs80000gn/T/xfs-b6204c5e/yarn
    npm: 9.5.1 - ~/.asdf/plugins/nodejs/shims/npm
  Browsers:
    Chrome: 117.0.5938.62
    Safari: 16.6
  npmPackages:
    gatsby: ^5.12.4 => 5.12.4

Config Flags

No response

@Mrtenz Mrtenz added the type: bug An issue or pull request relating to a bug in Gatsby label Sep 25, 2023
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer type: bug An issue or pull request relating to a bug in Gatsby
Projects
None yet
Development

No branches or pull requests

1 participant