Right now, expressions inside of template literals are have the level of indentation of the start of the template literal. But oftentimes, expressions are nested inside of template literals and therefore the expression should have this level of nesting. The heuristic i'm using to decide when to use the template literal nesting is if it's not the first line and if there isn't another expression before on the same line.
19 lines
389 B
JavaScript
19 lines
389 B
JavaScript
module.exports = Relay.createContainer(
|
|
// ...
|
|
{
|
|
fragments: {
|
|
nodes: ({solution_type, time_frame}) => Relay.QL`
|
|
fragment on RelatedNode @relay(plural: true) {
|
|
__typename
|
|
${OptimalSolutionsSection
|
|
.getFragment(
|
|
'node',
|
|
{solution_type, time_frame},
|
|
)
|
|
}
|
|
}
|
|
`,
|
|
},
|
|
},
|
|
);
|