You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Like what is an example of an expected string value of an option currently?
Maybe, to preserve backwards compatibility, we can typeof check the value of an option and if string do the regex thing else if object, expect one with a structure like @sjstark's suggestion.
Yes this makes sense to me too. The regex I’m pretty sure tries to parse a label-value pair from the string with a pipe separator, ie “Layout Left | layout-left”. I’d like to keep the string option for back compatibility at least for a little while until I know for sure the POJO route is easy to work with in Contentful.
Should be able to set
options
prop to an array of{'label','value'}
POJOsThe text was updated successfully, but these errors were encountered: