Skip to content

Style element attributes are shared and mutated in renderer #295

Description

@ling1726

https://codesandbox.io/s/nostalgic-jepsen-qui5et?file=/src/App.js

If you inspect the above example you will see that all style elements have the media selector. This is because the user provided styleElementAttributes are reused and mutated

options.styleElementAttributes,

elementAttributes['media'] = metadata['m'] as string;

(only bucket m should have the media attribute)
image

Metadata

Metadata

Labels

🐞 bugSomething isn't working

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions