react-snap icon indicating copy to clipboard operation
react-snap copied to clipboard

options.waitFor freezes crawling/rendering

Open alexanderhorner opened this issue 2 years ago • 0 comments

Bug Report

Current Behavior When I set "waitFor" to anything above a few milliseconds, crawling will take ages. Maybe because the firebase data fetching takes so long?

Reproducible demo Link to GitHub repository or codesandbox with a demo of the bug behavior.

npm run serve

Expected behavior/code It loads my data in the expected time (less than 5 seconds)

Possible Solution Maybe the headless chrome needs more power?

Edit: Does it wait for network requests to finish or something? Since firebase keeps a connection open to the database and recieves data every ~15 seconds, maybe react-snap thinks its not finished loading?

alexanderhorner avatar Jul 04 '22 00:07 alexanderhorner