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

refactor: remove references to currentScript #6559

Merged
merged 2 commits into from
Jun 17, 2024

Conversation

mhevery
Copy link
Contributor

@mhevery mhevery commented Jun 16, 2024

currentScript is not available in shadow dom. For this reason we can't use it. This change removes all references to currentScript

The biggest change is that the qFuncs are no longer written to the container element but rather to the document. Because there is only one document the qFuncs property now includes the container q:manifest-hash to distinguish between different containers.

@mhevery mhevery requested a review from a team as a code owner June 16, 2024 23:19
Copy link

netlify bot commented Jun 16, 2024

Deploy Preview for qwik-insights ready!

Name Link
🔨 Latest commit dd0fbda
🔍 Latest deploy log https://app.netlify.com/sites/qwik-insights/deploys/666f9cc2c6f7750008c70004
😎 Deploy Preview https://deploy-preview-6559--qwik-insights.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

pkg-pr-new bot commented Jun 16, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

commit: dd0fbda

@builder.io/qwik

npm i https://pkg.pr.new/@builder.io/qwik@6559

@builder.io/qwik-city

npm i https://pkg.pr.new/@builder.io/qwik-city@6559

eslint-plugin-qwik

npm i https://pkg.pr.new/eslint-plugin-qwik@6559

create-qwik

npm i https://pkg.pr.new/create-qwik@6559

@mhevery mhevery force-pushed the build/feat-containerAttributes branch from 8f33ce0 to 8e28b82 Compare June 16, 2024 23:24
Copy link

cloudflare-pages bot commented Jun 16, 2024

Deploying qwik-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: dd0fbda
Status: ✅  Deploy successful!
Preview URL: https://50e947c1.qwik-8nx.pages.dev
Branch Preview URL: https://build-feat-containerattribut.qwik-8nx.pages.dev

View logs

Copy link

Deploying qwik-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 8e28b82
Status:⚡️  Build in progress...

View logs

@mhevery mhevery force-pushed the build/feat-containerAttributes branch from 8e28b82 to dfed462 Compare June 16, 2024 23:29
gioboa
gioboa previously approved these changes Jun 16, 2024
Copy link
Member

@gioboa gioboa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks great to me 👏

gioboa
gioboa previously approved these changes Jun 17, 2024
`currentScript` is not available in shadow dom. For this reason we
can't use it. This change removes all references to `currentScript`

The biggest change is that the `qFuncs` are no longer written to the
container element but rather to the document. Because there is only
one document the `qFuncs` property now includes the `container`
`q:manifest-hash` to distinguish between different containers.
@mhevery mhevery force-pushed the build/feat-containerAttributes branch from d22354a to dd0fbda Compare June 17, 2024 02:17
@mhevery mhevery merged commit 8d1c0b0 into main Jun 17, 2024
45 checks passed
@mhevery mhevery deleted the build/feat-containerAttributes branch June 17, 2024 02:43
genki pushed a commit to genki/qwik that referenced this pull request Jun 28, 2024
* refactor: remove references to `currentScript`

`currentScript` is not available in shadow dom. For this reason we
can't use it. This change removes all references to `currentScript`

The biggest change is that the `qFuncs` are no longer written to the
container element but rather to the document. Because there is only
one document the `qFuncs` property now includes the `container`
`q:manifest-hash` to distinguish between different containers.

* fixup! refactor: remove references to `currentScript`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants