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

Packages: Refactor Common Block Code #16229

Closed
wants to merge 3 commits into from

Commits on Jun 20, 2019

  1. Compose: Add new "HOC from hooks" helper and hooks for non-primitive …

    …deps.
    
    - Add `createHigherOrderComponentWithMergeProps` for making it easier to make higher order components from hooks.
    - Add the `useCustomCompareDep`, `useShallowCompareDep`, and `useDeepCompareDep` hooks for making it easier to use non-primitives in hooks dependency arrays.
    epiqueras committed Jun 20, 2019
    Configuration menu
    Copy the full SHA
    dcf300b View commit details
    Browse the repository at this point in the history
  2. Block Editor: Add a hook for common attribute code and test it on col…

    …or HOCs.
    
    - Added the `useAttributePicker` hook to abstract away common block code and used it to refactor the color higher order components. They are now written with the new exported hooks, `useColors` and `useCustomColors`.
    epiqueras committed Jun 20, 2019
    Configuration menu
    Copy the full SHA
    4dc2974 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5726843 View commit details
    Browse the repository at this point in the history