Component references in object-notation styles
See original GitHub issuePer the conversation with @mxstbr in spectrum, I’ve gotten nested selectors and media queries working with the new object-notation, but not Component references like ${Text}
.
Here’s my Sandbox for an example (check out the ObjectTest
file): https://codesandbox.io/s/xz9q6ovvlo
Reproduction
Expected Behavior
<Text>
component has red text
Actual Behavior
<Text>
component has purple text
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Component Reference - Red Hat on GitHub - JBoss.org
A reference guide to the components of the RichFaces 4 framework ... be serialized in JavaScript Object Notation ( JSON ) and returned...
Read more >Specifying bindings in an SCA environment - IBM
Services and references enable a component to communicate with other applications. ... The product supports the following binding types: SCA binding.
Read more >Working with objects - JavaScript - MDN Web Docs - Mozilla
Comparing objects In JavaScript, objects are a reference type. Two distinct objects are never equal, even if they have the same properties. ...
Read more >Component Reference object
Use the Component Reference object to programatically retrieve and query all the components which use or are used by a specific component.
Read more >RFC 8259: The JavaScript Object Notation (JSON) Data ...
Code Components extracted from this document must include Simplified BSD License ... JSON can represent four primitive types (strings, numbers, booleans, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Maybe a ToString method on the component could implicitly extract this when used as an object key.
Here is a workaround: https://codesandbox.io/s/yv8ojjr5wj, but it relies on internals. I suppose we could add a util to make the pattern a little neater: