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

Streaming break when load async zone.js #9440

Open
shaodahong opened this issue May 16, 2024 · 2 comments
Open

Streaming break when load async zone.js #9440

shaodahong opened this issue May 16, 2024 · 2 comments

Comments

@shaodahong
Copy link

Reproduction

https://stackblitz.com/edit/remix-run-remix-rsqsnh?file=app%2Froutes%2Fpage.%24pageName.tsx,app%2Fentry.server.tsx,vite.config.ts,package.json,app%2Froot.tsx,app%2Fentry.client.tsx

System Info

System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 18.18.0 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.2.3 - /usr/local/bin/npm
    pnpm: 8.15.6 - /usr/local/bin/pnpm
  npmPackages:
    @remix-run/dev: * => 2.9.2 
    @remix-run/node: * => 2.9.2 
    @remix-run/react: * => 2.9.2 
    @remix-run/serve: * => 2.9.2 
    vite: ^5.1.0 => 5.2.11

Used Package Manager

npm

Expected Behavior

stream data be resolved

Actual Behavior

Sometimes the data variable becomes a promise

image
@shaodahong
Copy link
Author

The problem happens when I import the zone.js, and async attr

<script
  src="https://cdnjs.cloudflare.com/ajax/libs/zone.js/0.13.1/zone.min.js"
  async
></script>

@shaodahong shaodahong changed the title Stream break when load async zone.js Streaming break when load async zone.js May 16, 2024
@shaodahong
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants