Open grug opened 3 years ago
Internal ticket created: [FSSDK-8653]
I'm very keen on this change as my company has suffered production incidents due to misunderstandings around how this works. It was assumed that adding a default
attribute to an <OptimizelyVariation>
component that has a variation
would suffice.
Following those incidents, I felt it necessary to write an ESLint plugin to ensure our engineers implement an <OptimizelyVariation>
component that has a default
attribute but no variation
attribute.
If the internal ticket hasn't been progressed, would you welcome a pull request?
I'm working on this Issue and #225 in this sprint.
Always welcome pull requests. This helps all stakeholders (including internal) understand the requirement / POV as well as shorten up the implementation.
I have a dependent branch ready with this bug fix and test coverage.
This is great news! Can't wait to see it.
This would be a nice quality of life improvement to have as we often have experiment code that looks like this:
It would be nice to be able to express the above as:
As it is more concise and just as readable.
Is there a chance of seeing this improvement land in the SDK?
-Dave