Skip to content

sort out 'key' in new layout renderer, options is obj rather than arr

Stuart Fisher requested to merge update/layout-proptypes-key into master
  • Options is an obj not array
  • Because the renderer now nests each component in a wrapper the key needs to be apply to the wrapper rather than the child as it was before
  • 'key' is a special prop which cannot be passed through, you have to rename it (fyi key is used to determine when react re-renders a component, so its important that this is unique in a list of objects)
Edited by Stuart Fisher

Merge request reports