Gatsby hangs on "Building static HTML for pages" when using Recoil with Suspend
#38574
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
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
gatsby build
.Expected Result
The build completes.
Actual Result
The build gets stuck.
Environment
Config Flags
No response
The text was updated successfully, but these errors were encountered: