Skip to content

[🐞] [v2] Context breaks when using higher order components in CSR #8015

@thejackshelton

Description

@thejackshelton

Which component is affected?

Qwik Runtime

Describe the bug

When using CSR and context, where a component relies on a lower level primitive / component that also uses context, nothing is rendered and we see Qwik Error 8.

SSR this behavior works.

For example, say you have a Checklist component that uses context, and each Checklist item returns a checkbox that uses context, then that behavior is broken in CSR.

Reproduction

https://github.com/thejackshelton/v2-csr-context

Steps to reproduce

No response

System Info

System:
    OS: macOS 15.6.1
    CPU: (16) arm64 Apple M4 Max
    Memory: 442.55 MB / 48.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.18.0 - /usr/local/bin/node
    Yarn: 1.22.22 - /usr/local/bin/yarn
    npm: 10.9.3 - /usr/local/bin/npm
    pnpm: 10.14.0 - ~/.nvm/versions/node/v22.14.0/bin/pnpm
    bun: 1.1.7 - ~/.bun/bin/bun
    Deno: 2.1.4 - /opt/homebrew/bin/deno
  Browsers:
    Brave Browser: 135.1.77.95
    Chrome: 141.0.7390.54
    Safari: 18.6
  npmPackages:
    typescript: 5.4.5 => 5.4.5 
    undici: * => 7.16.0 
    vite: 7.1.4 => 7.1.4

Additional Information

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions