Split React components? #1943
Replies: 4 comments 4 replies
-
To guide this, we’re also meant to think of what it should achieve or potentially, what it should enable for our users so that it’s not an endless refactor. This discussion has come up before when we looked at making the flowchart a standalone component: #954 & #943. |
Beta Was this translation helpful? Give feedback.
-
Extracting the flowchart component requires a considerable amount of refactoring to decouple it from the existing Kedro-Viz. This involves removing or replacing Redux with a lighter state management, which is a big task given the complexity and maturity of the current setup. Above discussion came from feature request by @datajoely to have preview mode which is flowchart only mode. which can be achieve with react props. #1745 (comment) without going into major refactor. But Standalone flowchart component going to be really helpful in use cases VSCode extension if we can run web/react app inside VSCode. |
Beta Was this translation helpful? Give feedback.
-
Alternatives to Redux:
|
Beta Was this translation helpful? Give feedback.
-
TIL: We do have those individual components (thanks @rashidakanchwala) kedro-viz/src/components/flowchart-wrapper/flowchart-wrapper.js Lines 322 to 354 in 4005b58 Is it technically possible for a user to do just <FlowChart /> ? (Even if it's not currently documented and props come from Redux) |
Beta Was this translation helpful? Give feedback.
-
In discussion yesterday with @jitu5 and @stephkaiser, the idea of breaking down the monolithic Kedro Viz React component came up. @jitu5 mentioned that it would be a bit of work.
How feasible it would be?
Some resources I found after a quick search:
Beta Was this translation helpful? Give feedback.
All reactions