Skip to content

[🐞] scoped styles don't work on Promise throw #8136

@wmertens

Description

@wmertens

Which component is affected?

Qwik Runtime

Describe the bug

when adding a scoped style after something that throws a Promise, it won't be applied

Reproduction

https://qwikdev-build-v2.qwik-8nx.pages.dev/playground/#f=7VbLCoJAFN33GbNJMaQWBT0U%2BhMpJaJAsFqEzL93ruemM1pQi3YtdWbu%2B9xznKGZL9p0JMJuACb46nOU%2FtsKsNvxfl5s9tlIG2N8CWNQGq0JeCh5PWcucxt2xSBeHoB8jge8HLgPuGbUjFZ4LA7keCwj6puGnRgwvhXNyYCGs7hCiPW%2BPJfVCh3L1zYb2DBc4hKeAxBoJQqjBOHnJr3KhruAg0EiO9nlOfUUgfMR9pg6JhNMVjF9FjqYhj3Pp%2BKe1HqTCVrtvNRcZ2JDHdfJl5q%2BvHdRZFOwSdOBVvnhuSpFG74B%2FWzpyNpvQO%2FNyh%2Fyv4D8Aw

Steps to reproduce

if you comment out the sig.value log, it won't throw and the style will be applied
if you move the useStyles to be first, it will also work even with the throw

System Info

web

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