This PR aims to enhance the flexibility and functionality of the Kedro Viz React component by exposing internal Redux state to component users through props.
Existing props structure:
The new structure consolidates display, visible, and other settings under a single props object, making the component's API more organized and scalable.
Development notes
Generic action UPDATE_STATE_FROM_LATEST_PROPS created to update redux state coming from react props.
Except data all existing props will wrap under a props
props.display.sidebar will remove the sidebar & primaryToolbar
nonPipelineState and pipelineState will not accept props
props.props will merge to existing state in getInitialState
Description
This PR aims to enhance the flexibility and functionality of the Kedro Viz React component by exposing internal Redux state to component users through props. Existing props structure:
New props structure:
The new structure consolidates
display
,visible
, and other settings under a singleprops
object, making the component's API more organized and scalable.Development notes
UPDATE_STATE_FROM_LATEST_PROPS
created to update redux state coming from react props.props
props.display.sidebar
will remove the sidebar & primaryToolbarnonPipelineState
andpipelineState
will not accept propsprops.props
will merge to existing state ingetInitialState
Checklist
RELEASE.md
file