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

Use React Hooks for connect #1065

Closed
wants to merge 18 commits into from
Closed

Use React Hooks for connect #1065

wants to merge 18 commits into from

Commits on Aug 14, 2018

  1. Configuration menu
    Copy the full SHA
    4e654e2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    31fc951 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0374936 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a64103c View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    ed7a910 View commit details
    Browse the repository at this point in the history

Commits on Aug 18, 2018

  1. Fix lint errors

    markerikson committed Aug 18, 2018
    Configuration menu
    Copy the full SHA
    3cf4a0f View commit details
    Browse the repository at this point in the history
  2. Add react-is

    markerikson committed Aug 18, 2018
    Configuration menu
    Copy the full SHA
    6bfedb1 View commit details
    Browse the repository at this point in the history
  3. Add missing functionality for connect and Provider

    Added ability to swap stores
    Removed single-child limitation
    
    Added invariant warnings for storeKey and withRef
    Added valid element check using react-is
    Refactored child selector creation for reusability
    Added prop types for components
    Added forwardRef and consumer as prop capability
    Added a tiny memoized function for wrapper props handling
    Removed semicolons
    markerikson committed Aug 18, 2018
    Configuration menu
    Copy the full SHA
    5df5a0f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1fe01d0 View commit details
    Browse the repository at this point in the history

Commits on Aug 24, 2018

  1. Configuration menu
    Copy the full SHA
    0d0360f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    577efb0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7f72494 View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2018

  1. Make forwardRef optional

    markerikson committed Sep 13, 2018
    Configuration menu
    Copy the full SHA
    9210282 View commit details
    Browse the repository at this point in the history

Commits on Oct 25, 2018

  1. Configuration menu
    Copy the full SHA
    b6a267a View commit details
    Browse the repository at this point in the history

Commits on Oct 26, 2018

  1. Configuration menu
    Copy the full SHA
    ef8aa4e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3c0428b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6b8df35 View commit details
    Browse the repository at this point in the history
  4. Rewrite connectAdvanced to use hooks internally

    Replaced multiple levels of class wrappers with a simple hook that
    reads the store state from context, initializes and uses the
    provided selector, and memoizes the wrapped component as needed.
    
    Updated Provider and connect to accept an entire context object
    as a prop, because `useContext` only works with a context object
    and not just the consumer.
    
    Also allows passing a new store instance to Provider, because we
    can easily reset the subscription aspect now.
    
    Updated tests.
    markerikson committed Oct 26, 2018
    Configuration menu
    Copy the full SHA
    d4ab1d8 View commit details
    Browse the repository at this point in the history