Skip to content

[Work in progress] Separation of concerns using React - #117

Closed
Vinnl wants to merge 3 commits into
masterfrom
soc-react
Closed

[Work in progress] Separation of concerns using React#117
Vinnl wants to merge 3 commits into
masterfrom
soc-react

Conversation

@Vinnl

@Vinnl Vinnl commented Jun 12, 2019

Copy link
Copy Markdown
Contributor

This is strongly based on #116. I created a Markdown pane with practically the same functionality and a similar architecture as in that PR, but this time using React. This primarily demonstrates that it is possible to use React in a single pane, without having to share a data model with the rest - it simply attaches to a DOM node, which is then provided to the OutlineManager.

The primary change is that there is no controller here. That said, there still is a "Container" component, which glues the data fetching to the view (ie hard to test, but logic that's not too complicated). That means that the view logic is relatively easy to test - an example is included.

I'll look at porting the TrustedApplications Pane next to get a feel for how this would work for a more involved Pane, but thought I'd submit this to give an initial view of what this might look like.

Fixes #72.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement conventions for panes that facilitate separation of concern

3 participants