Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce and bind components to global app state #368

Merged
merged 4 commits into from
Apr 4, 2017
Merged

Conversation

aduth
Copy link
Member

@aduth aduth commented Apr 4, 2017

This pull request seeks to introduce a global state powered by Redux. See previous discussion at #360 (comment) . Specifically this will assist in allowing disparate components of the application retrieve and manipulate state of the broader application. Encouraging self-sufficient components will also facilitate future refactoring if components need to be moved or reused.

It also effectively supersedes #361, implementing block UID in the proposed state shape.

Testing Instructions:

Existing behavior should remain unaffected.

Follow-up Tasks:

  • Parsing on SET_HTML may need to be optimized, especially in current implementation where this is called on every change event of the rendered text-mode textarea.
  • We will need to decide how to apply updates via UPDATE_BLOCK, whether to allow the block implementation access to updating top-level properties like blockType or expecting them only to update attributes (and regardless, allowing easy patch updates of attributes).

@aduth aduth added the Framework Issues related to broader framework topics, especially as it relates to javascript label Apr 4, 2017
Assigned in parent component map
@intronic
Copy link
Contributor

intronic commented Apr 4, 2017

This looks great, we were looking at doing something similar to help with UI management of the different block editors, such as recording the currently active editor if any.

@youknowriad
Copy link
Contributor

😍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Framework Issues related to broader framework topics, especially as it relates to javascript
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants