Masala Design System (MDS) is an open-source design system built at Innovaccer. Figma file : https://www.figma.com/community/file/974368355920553546/masala-design-system-web-guidelines
Question:
Is there any prop in option where I can pass some sort of metadata like an object or array? related to that object so I don't have to loop over again the options array to retrieve those values.
Suggestion:
Right now we have value field in optionSchema which is of any type which can lead to errors if someone instead of string | number provided an object which might be intentional or by mistake, this equality will always falsy in that case. While it will be very rare as most of us can predict the equality condition using value, but why leave scope for the bug.
Question: Is there any prop in option where I can pass some sort of metadata like an object or array? related to that object so I don't have to loop over again the options array to retrieve those values.
Suggestion: Right now we have
value
field inoptionSchema
which is ofany
type which can lead to errors if someone instead ofstring | number
provided an object which might be intentional or by mistake, this equality will always falsy in that case. While it will be very rare as most of us can predict the equality condition using value, but why leave scope for the bug.